Skip to content

Commit

Permalink
Rename anyConsensusModeParams to consensusModeParams
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 26, 2023
1 parent e2fba4d commit 6e61ba0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/EraBased/Commands/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ data TransactionSignWitnessCmdArgs = TransactionSignWitnessCmdArgs
} deriving Show

data TransactionSubmitCmdArgs = TransactionSubmitCmdArgs
{ nodeSocketPath :: !SocketPath
, anyConsensusModeParams :: !(ConsensusModeParams CardanoMode)
, networkId :: !NetworkId
, txFile :: !FilePath
{ nodeSocketPath :: !SocketPath
, consensusModeParams :: !(ConsensusModeParams CardanoMode)
, networkId :: !NetworkId
, txFile :: !FilePath
} deriving Show

newtype TransactionPolicyIdCmdArgs = TransactionPolicyIdCmdArgs
Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ runTransactionSubmitCmd :: ()
runTransactionSubmitCmd
Cmd.TransactionSubmitCmdArgs
{ nodeSocketPath
, anyConsensusModeParams = cModeParams
, consensusModeParams
, networkId
, txFile
} = do
Expand All @@ -935,7 +935,7 @@ runTransactionSubmitCmd
let eraInMode = toEraInCardanoMode era
let txInMode = TxInMode tx eraInMode
localNodeConnInfo = LocalNodeConnectInfo
{ localConsensusModeParams = cModeParams
{ localConsensusModeParams = consensusModeParams
, localNodeNetworkId = networkId
, localNodeSocketPath = nodeSocketPath
}
Expand Down
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/Legacy/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ runLegacyTransactionCmds = \case
metadataSchema scriptFiles metadataFiles mProtocolParamsFile mUpProp out
TransactionSignCmd txinfile skfiles network txoutfile ->
runLegacyTransactionSignCmd txinfile skfiles network txoutfile
TransactionSubmitCmd mNodeSocketPath anyConsensusModeParams network txFp ->
runLegacyTransactionSubmitCmd mNodeSocketPath anyConsensusModeParams network txFp
TransactionSubmitCmd mNodeSocketPath consensusModeParams network txFp ->
runLegacyTransactionSubmitCmd mNodeSocketPath consensusModeParams network txFp
TransactionCalculateMinFeeCmd txbody nw pParamsFile nInputs nOutputs nShelleyKeyWitnesses nByronKeyWitnesses ->
runLegacyTransactionCalculateMinFeeCmd txbody nw pParamsFile nInputs nOutputs nShelleyKeyWitnesses nByronKeyWitnesses
TransactionCalculateMinValueCmd era pParamsFile txOuts' ->
Expand Down Expand Up @@ -164,13 +164,13 @@ runLegacyTransactionSubmitCmd :: ()
-> ExceptT TxCmdError IO ()
runLegacyTransactionSubmitCmd
socketPath
anyConsensusModeParams
consensusModeParams
network
txFilePath =
runTransactionSubmitCmd
( Cmd.TransactionSubmitCmdArgs
socketPath
anyConsensusModeParams
consensusModeParams
network
txFilePath
)
Expand Down

0 comments on commit 6e61ba0

Please sign in to comment.