Skip to content

Commit

Permalink
Print coin_selections if there are no inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed May 3, 2024
1 parent 51490ab commit c6594fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e/spec/e2e_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,18 @@ def script_hash
tx_certificates(tx, present: false)
end

it 'currency' do
it 'currency', :debug do
currency_script = 'currency.json'
currency_policy = 'currency_policy'

# Perform coin selection to select input to be used in minting contract
address = SHELLEY.addresses.list(@wid)[0]['id']
addresses = SHELLEY.addresses.list(@wid)
print addresses
address = addresses[0]['id']
payload_cs = [{ address: address,
amount: { quantity: 1_000_000_000, unit: 'lovelace' } }]
amount: { quantity: 10_000_000, unit: 'lovelace' } }]
coin_selection = SHELLEY.coin_selections.random(@wid, payload_cs)
print coin_selection if coin_selection['inputs'].nil?
input = coin_selection['inputs'].select { |i| i['assets'] == [] }.first
tx_id = input['id']
tx_idx = input['index'].to_i
Expand Down

0 comments on commit c6594fc

Please sign in to comment.