From 1c05790eb2d8bef230402b1e0531550eabdec547 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:49:47 -0500 Subject: [PATCH] feat: provide gas price for gentx (#1051) (#1053) (cherry picked from commit a9d9821194f131c49a9aac56aac32337427bf362) Co-authored-by: Rootul P --- chain/cosmos/chain_node.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chain/cosmos/chain_node.go b/chain/cosmos/chain_node.go index e00a72516..d922e0d33 100644 --- a/chain/cosmos/chain_node.go +++ b/chain/cosmos/chain_node.go @@ -741,8 +741,11 @@ func (tn *ChainNode) Gentx(ctx context.Context, name string, genesisSelfDelegati } command = append(command, "gentx", valKey, fmt.Sprintf("%s%s", genesisSelfDelegation.Amount.String(), genesisSelfDelegation.Denom), + "--gas-prices", tn.Chain.Config().GasPrices, + "--gas-adjustment", fmt.Sprint(tn.Chain.Config().GasAdjustment), "--keyring-backend", keyring.BackendTest, - "--chain-id", tn.Chain.Config().ChainID) + "--chain-id", tn.Chain.Config().ChainID, + ) _, _, err := tn.ExecBin(ctx, command...) return err