increase gas limit for redelegation only

This commit is contained in:
psaradev 2021-02-03 20:14:37 +10:00
parent 5acdc07df4
commit 2ce6d4bcba
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ const (
// failures due to state changes that might occur between the tx simulation
// and the actual run.
DefaultGasAdjustment = 1.0
DefaultGasLimit = 300000
DefaultGasLimit = 200000
GasFlagAuto = "auto"
// DefaultKeyringBackend

View File

@ -26,6 +26,7 @@ func MsgRedelegateExec(clientCtx client.Context, from, src, dst, amount fmt.Stri
dst.String(),
amount.String(),
fmt.Sprintf("--%s=%s", flags.FlagFrom, from.String()),
fmt.Sprintf("--%s=%d", flags.FlagGas, 300000),
}
args = append(args, commonArgs...)