-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates cardano-cli to not use PReferenceScript/SReferenceScript ScriptHash field #918
base: main
Are you sure you want to change the base?
Conversation
gatherMintingWitnesses ((pid'm, sWit) : rest) = | ||
case scriptWitnessPolicyId pid'm sWit of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gatherMintingWitnesses ((pid'm, sWit) : rest) = | |
case scriptWitnessPolicyId pid'm sWit of | |
gatherMintingWitnesses ((mPid, sWit) : rest) = | |
case scriptWitnessPolicyId mPid sWit of |
Rationale: having a quote in the middle of a variable name is surprising
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I picked up this style in Standard Chartered ('m
for Maybe
, 'e
for Either
). No issue, I will adhere to suggested style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All updated, squashed and formatted.
@Swordlash> please format your changes with:
(in this order: |
@Swordlash thank you for bringing this to our attention. I have been aware of this for some time but haven't been able to dedicate the time to a solution. We're discussing a potential solution that involves modifying the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are discussing another way to modify cardano-api
to avoid having to specify Maybe PolicyId
.
Thanks @Jimbo4350, lmk if you'd like me to do something, I'm prepared to dedicate some time for it this week (next weeks I'm away). |
Changelog
Context
See the upstream PR.
The
Maybe ScriptHash
field inP/SReferenceScript
is redundant incardano-api
, causing confusion. Nonetheless it's used incardano-cli
as a temporary container for user-provided input. This PR refactors it out so the field can be safely removed from upstream.Checklist