diff --git a/test/e2e/helpers/cardano_cli.rb b/test/e2e/helpers/cardano_cli.rb index 940600aa285..dd14f73068e 100644 --- a/test/e2e/helpers/cardano_cli.rb +++ b/test/e2e/helpers/cardano_cli.rb @@ -93,7 +93,7 @@ def tx_build_raw_always_fails(script_file, target_addr, collateral_ret_addr) txbody = File.join(@node_state, 'txbody') - cli('transaction', 'build-raw', + cli('conway','transaction', 'build-raw', '--tx-in', script_utxo, '--tx-out', "#{target_addr}+#{50_000_000 - fee}", '--tx-in-script-file', script_file, @@ -113,7 +113,7 @@ def tx_build_raw_always_fails(script_file, def tx_build(*options) txbody = File.join(@node_state, 'txbody') - cli('transaction', 'build', + cli('conway','transaction', 'build', '--babbage-era', '--testnet-magic', @protocol_magic, '--out-file', txbody, @@ -124,7 +124,7 @@ def tx_build(*options) def tx_sign(txbody, keys) txsigned = File.join(@node_state, 'txsigned') signing_keys = keys.filter { |k, _| k.to_s.end_with?('_skey') }.map { |_, v| "--signing-key-file #{v}" } - cli('transaction', 'sign', + cli('conway', 'transaction', 'sign', '--tx-body-file', txbody, '--testnet-magic', @protocol_magic, signing_keys.join(' '), # --signing-key-file key1 --signing-key-file key2 ... @@ -135,17 +135,17 @@ def tx_sign(txbody, keys) # @return [String] - tx id def tx_submit(txsigned) # submit - cli('transaction', 'submit', + cli('conway', 'transaction', 'submit', '--tx-file', txsigned, '--testnet-magic', @protocol_magic) # return tx id - cli('transaction', 'txid', + cli('conway', 'transaction', 'txid', '--tx-file', txsigned).strip end def policy_id(script_file) - cli('transaction', 'policyid', + cli('conway','transaction', 'policyid', '--script-file', script_file).strip end end