-
Notifications
You must be signed in to change notification settings - Fork 16
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
Byron isolation 2 of n #467
Conversation
4421bcf
to
67e9223
Compare
-- TODO: As a follow up we need to expose a simple tx building command that only | ||
-- uses inputs, outputs and update proposals. NB: Update proposals are a separate | ||
-- thing in the Byron era so we need to figure out how we are handling that at the | ||
-- cli command level. |
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.
In a follow up PR we will remove support for the Byron era here.
@@ -930,8 +930,7 @@ runTransactionSignCmd | |||
inputTxFile <- liftIO $ fileOrPipe inputTxFilePath | |||
anyTx <- lift (readFileTx inputTxFile) & onLeft (left . TxCmdCddlError) | |||
|
|||
InAnyShelleyBasedEra sbe tx <- | |||
onlyInShelleyBasedEras "sign for Byron era transactions" anyTx | |||
InAnyShelleyBasedEra sbe tx <- pure anyTx |
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 never supported Byron era tx signing. Indication that people were using the "old" cardano-cli byron
cli commands for everything Byron related.
@@ -998,8 +997,8 @@ runTransactionSubmitCmd | |||
, txFile | |||
} = do | |||
txFileOrPipe <- liftIO $ fileOrPipe txFile | |||
InAnyCardanoEra era tx <- lift (readFileTx txFileOrPipe) & onLeft (left . TxCmdCddlError) | |||
let txInMode = TxInMode era tx | |||
InAnyShelleyBasedEra era tx <- lift (readFileTx txFileOrPipe) & onLeft (left . TxCmdCddlError) |
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.
QA confirmed they use the "old" cardano-cli byron
commands to submit txs. Unlikely anybody else is using this command to submit byron era txs.
67e9223
to
c907b16
Compare
a020a6b
to
d704050
Compare
d704050
to
ebdfd13
Compare
Introduce Byron/Shelley split into runLegacyTransactionBuildRawCmd
The following functions never supported the Byron era: runTransactionSignCmd runTransactionCalculateMinFeeCmd runTransactionWitnessCmd
cardano-cli transaction submit cardano-cli transaction txid cardano-cli transaction view
Rename readFileInAnyCardanoEra to readFileInAnyShelleyBasedEra Modify CddlWitness to wrap InAnyShelleyBasedEra KeyWitness
026262a
to
cebac91
Compare
cebac91
to
ffd8f5c
Compare
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