Skip to content

Commit

Permalink
Merge pull request #443 from brendanrbrown/fix-calculate-min-fee-cmd
Browse files Browse the repository at this point in the history
put n shelley/byron key witnesses arguments in correct order
  • Loading branch information
smelc authored Nov 8, 2023
2 parents ba858ec + 21f9320 commit 562da5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ runTransactionCalculateMinFeeCmd
(protocolParamTxFeePerByte pparams)
tx
nInputs nOutputs
nByronKeyWitnesses nShelleyKeyWitnesses
nShelleyKeyWitnesses nByronKeyWitnesses

liftIO $ putStrLn $ (show fee :: String) <> " Lovelace"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ hprop_golden_shelley_transaction_calculate_min_fee = propertyOnce $ do
[ "transaction","calculate-min-fee"
, "--tx-in-count", "32"
, "--tx-out-count", "27"
, "--byron-witness-count", "5"
, "--witness-count", "10"
, "--byron-witness-count", "10"
, "--witness-count", "5"
, "--testnet-magic", "4036000900"
, "--protocol-params-file", protocolParamsJsonFile
, "--tx-body-file", txBodyFile
]

H.diff minFeeTxt (==) "5083100 Lovelace\n"
H.diff minFeeTxt (==) "5083100 Lovelace\n"

0 comments on commit 562da5e

Please sign in to comment.