-
Notifications
You must be signed in to change notification settings - Fork 23
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
Parameterize createAndValidateTransactionBody
on ShelleyBasedEra era
#378
Parameterize createAndValidateTransactionBody
on ShelleyBasedEra era
#378
Conversation
e26e7fb
to
ee82c03
Compare
- scriptLanguageSupportedInEra - toScriptInEra - refScriptToShelleyScript
ee82c03
to
ffac1c1
Compare
createAndValidateTransactioBody
on ShelleyBasedEra era
createAndValidateTransactionBody
on ShelleyBasedEra era
9bd659b
to
cd8a638
Compare
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 know it's still draft, but LGTM already
cd8a638
to
2e9104f
Compare
forEraInEon era | ||
(Left TextEnvelopeCddlErrByronKeyWitnessUnsupported) | ||
(\sbe -> f . InAnyCardanoEra era <$> deserialiseWitnessLedgerCddl sbe teCddl) | ||
AnyShelleyBasedEra era <- cddlTypeToEra ttoken |
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.
Byron witnesses were never supported in the cli: IntersectMBO/cardano-cli@2bcf5df#diff-a38343c1825e6e334224d0a8a1ba78a458652970f00c54f5fb0d040be28f822eL1247
@@ -270,14 +277,12 @@ deserialiseFromTextEnvelopeCddlAnyOf types teCddl = | |||
Left (TextEnvelopeCddlTypeError expectedTypes actualType) | |||
|
|||
Just (FromCDDLTx ttoken f) -> do | |||
AnyCardanoEra era <- cddlTypeToEra ttoken | |||
f . InAnyCardanoEra era <$> deserialiseTxLedgerCddl era teCddl | |||
AnyShelleyBasedEra era <- cddlTypeToEra ttoken |
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.
Byron txs were read via readByronTx
in cardano-cli. readByronTx
needs to be moved to cardano-api.
2e9104f
to
76da97b
Compare
Add getTxIdByron
Parameterize deserialiseTxLedgerCddl, deserialiseTx on ShelleyBasedEra Parameterize constructors of FromSomeTypeCDDL on InAnyShelleyBasedEra Remove "Witnessed Tx ByronEra" from cddlTypeToEra
76da97b
to
82789fa
Compare
…-withdrawals Disambiguate treasury withdrawal flags
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist