Skip to content

Commit

Permalink
utxo_ix is now integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoura committed May 3, 2021
1 parent 364f399 commit 8d77c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cardano_node_tests/tests/test_transactions.py
Expand Up @@ -1433,7 +1433,7 @@ def test_nonexistent_utxo_ix(
temp_template = helpers.get_func_name()

utxo = cluster.get_utxo(pool_users[0].payment.address)[0]
utxo_copy = utxo._replace(utxo_ix="5")
utxo_copy = utxo._replace(utxo_ix=5)
err = self._send_funds_with_invalid_utxo(
cluster_obj=cluster, pool_users=pool_users, utxo=utxo_copy, temp_template=temp_template
)
Expand Down
6 changes: 3 additions & 3 deletions cardano_node_tests/utils/dbsync_utils.py
Expand Up @@ -146,7 +146,7 @@ def get_tx_record(txhash: str) -> TxRecord:
seen_tx_out_ids.add(query_row.tx_out_id)
out_rec = clusterlib.UTXOData(
utxo_hash=str(txhash),
utxo_ix=str(query_row.utxo_ix),
utxo_ix=int(query_row.utxo_ix),
amount=int(query_row.tx_out_value),
address=str(query_row.tx_out_addr),
)
Expand All @@ -164,7 +164,7 @@ def get_tx_record(txhash: str) -> TxRecord:
coin = f"{policyid}.{asset_name}" if asset_name else policyid
ma_rec = clusterlib.UTXOData(
utxo_hash=str(txhash),
utxo_ix=str(query_row.utxo_ix),
utxo_ix=int(query_row.utxo_ix),
amount=int(query_row.ma_tx_out_quantity or 0),
address=str(query_row.tx_out_addr),
coin=coin,
Expand All @@ -183,7 +183,7 @@ def get_tx_record(txhash: str) -> TxRecord:
coin = f"{policyid}.{asset_name}" if asset_name else policyid
mint_rec = clusterlib.UTXOData(
utxo_hash=str(txhash),
utxo_ix=str(query_row.utxo_ix),
utxo_ix=int(query_row.utxo_ix),
amount=int(query_row.ma_tx_mint_quantity or 0),
address=str(query_row.tx_out_addr),
coin=coin,
Expand Down

0 comments on commit 8d77c02

Please sign in to comment.