-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalise cli tx commands over eras: sign, witness, assemble, fee, txid
These all work by reading a tx body. We use the era tx body is for to determine the era to use for everything else in each command. For a simple command like txid there's nothing else, so it will work for any era in a straightforward way. For most other commands the code can currently only support Shelley-based eras, so we add a dynamic test to fail for the Byron era. For witness and sign commands the tx body era simply determines the witness era. For assemble things are more interesting since we have to combine a txbody with a number of witnesses. We use a testEquality to check if the era of each witness matches the era of the txbody.
- Loading branch information
Showing
1 changed file
with
96 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters