From 59f6e0064d1922c8dae455cd5baef2d52daf537e Mon Sep 17 00:00:00 2001 From: mmsqe Date: Wed, 18 Dec 2024 10:02:26 +0800 Subject: [PATCH] cleanup --- integration_tests/test_basic.py | 1 - integration_tests/utils.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/integration_tests/test_basic.py b/integration_tests/test_basic.py index 94a7e5bc0a..7ecb0bafac 100644 --- a/integration_tests/test_basic.py +++ b/integration_tests/test_basic.py @@ -699,7 +699,6 @@ def test_batch_tx(cronos): ) cosmos_tx, tx_hashes = build_batch_tx_signed( - w3, cli, [ sign_transaction(w3, deploy_tx, KEYS["validator"]), diff --git a/integration_tests/utils.py b/integration_tests/utils.py index 25911c937b..7b00ff8df3 100644 --- a/integration_tests/utils.py +++ b/integration_tests/utils.py @@ -549,10 +549,10 @@ def modify_command_in_supervisor_config(ini: Path, fn, **kwargs): def build_batch_tx(w3, cli, txs, key=KEYS["validator"]): "return cosmos batch tx and eth tx hashes" - return build_batch_tx_signed([sign_transaction(w3, tx, key) for tx in txs]) + return build_batch_tx_signed(cli, [sign_transaction(w3, tx, key) for tx in txs]) -def build_batch_tx_signed(w3, cli, signed_txs): +def build_batch_tx_signed(cli, signed_txs): tmp_txs = [cli.build_evm_tx(signed.rawTransaction.hex()) for signed in signed_txs] msgs = [tx["body"]["messages"][0] for tx in tmp_txs]