Skip to content

Commit

Permalink
Add conway param to CLI calls in ruby e2e spec
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Nov 18, 2024
1 parent 8a725ab commit 95931dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/helpers/cardano_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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 ...
Expand All @@ -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

0 comments on commit 95931dc

Please sign in to comment.