From ac4c20642a7890d90ad0aa63a532a95d12f2dbc0 Mon Sep 17 00:00:00 2001 From: ekez Date: Thu, 6 Apr 2023 15:40:21 -0700 Subject: [PATCH] Use `--gas auto` when executing transactions. Without this change the max_gas for a given transaction defaults to 200_000 which is not enough for any non-trivial smart contract interactions. --- chain/cosmos/chain_node.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/cosmos/chain_node.go b/chain/cosmos/chain_node.go index 3e6ca36bc..d5b51bbc4 100644 --- a/chain/cosmos/chain_node.go +++ b/chain/cosmos/chain_node.go @@ -408,6 +408,7 @@ func (tn *ChainNode) TxCommand(keyName string, command ...string) []string { "--from", keyName, "--gas-prices", tn.Chain.Config().GasPrices, "--gas-adjustment", fmt.Sprint(tn.Chain.Config().GasAdjustment), + "--gas", "auto", "--keyring-backend", keyring.BackendTest, "--output", "json", "-y",