From b6a31b7ec2f0c8a4cae166bde855ac35fbb53532 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Thu, 16 Jun 2022 10:39:01 +0800 Subject: [PATCH] fix gas parameter --- integration_tests/cosmoscli.py | 6 +++++- integration_tests/test_ibc.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/integration_tests/cosmoscli.py b/integration_tests/cosmoscli.py index 2fa0058c2d..7bb3cb49fa 100644 --- a/integration_tests/cosmoscli.py +++ b/integration_tests/cosmoscli.py @@ -1037,6 +1037,10 @@ def build_evm_tx(self, raw_tx: str, **kwargs): ) def transfer_tokens(self, from_, to, amount, **kwargs): + default_kwargs = { + "gas": "auto", + "gas_adjustment": "1.5", + } return json.loads( self.raw( "tx", @@ -1047,6 +1051,6 @@ def transfer_tokens(self, from_, to, amount, **kwargs): amount, "-y", home=self.data_dir, - **kwargs, + **(default_kwargs | kwargs), ) ) diff --git a/integration_tests/test_ibc.py b/integration_tests/test_ibc.py index 07e2521911..e9c1f6260b 100644 --- a/integration_tests/test_ibc.py +++ b/integration_tests/test_ibc.py @@ -102,7 +102,6 @@ def test_cronos_transfer_tokens(cronos, chainmain, hermes): cli.address("signer2"), coin_receiver, f"{src_amount}basetcro", - gas_adjustment="2", ) assert rsp["code"] == 0, rsp["raw_log"]