How to modify gas_limit #60
Answered
by
julienrbrt
skyargos
asked this question in
Chain Builders (Cosmos SDK)
-
Hi team: Can the gas parameter be modified through the gov proposal? |
Beta Was this translation helpful? Give feedback.
Answered by
julienrbrt
Nov 28, 2023
Replies: 1 comment 2 replies
-
The default gas value is defined in the client. When using the CLI, it is defined by the Cosmos SDK (https://github.com/cosmos/cosmos-sdk/blob/fc52ae5fdbf10f6780f02fec591f01dcb5c294b6/client/flags/flags.go#L18). What are you trying to achieve? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usually I always use
--gas auto
or--gas-adjustment 1.5
when getting out of gas issues.Bumping the default gas limit for CLI isn't the right solution as it won't work for each message. Best is to simulate the transaction.