Skip to content

Commit

Permalink
fix gas parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jun 16, 2022
1 parent f4064a3 commit b6a31b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -1047,6 +1051,6 @@ def transfer_tokens(self, from_, to, amount, **kwargs):
amount,
"-y",
home=self.data_dir,
**kwargs,
**(default_kwargs | kwargs),
)
)
1 change: 0 additions & 1 deletion integration_tests/test_ibc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit b6a31b7

Please sign in to comment.