From a3392b63d5b26a6c6d1617875bb8d0978415c03b Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 24 Oct 2023 12:43:43 +0200 Subject: [PATCH] Increase gas for Delegate/Redelegate/Undelegate to 400k --- lib/txMsgHelpers.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/txMsgHelpers.ts b/lib/txMsgHelpers.ts index f5cb6b8..5f365b3 100644 --- a/lib/txMsgHelpers.ts +++ b/lib/txMsgHelpers.ts @@ -11,11 +11,13 @@ const gasOfMsg = (msgType: MsgTypeUrl): number => { case MsgTypeUrls.WithdrawDelegatorReward: return 100_000; case MsgTypeUrls.BeginRedelegate: - return 150_000; + return 400_000; case MsgTypeUrls.Delegate: - return 150_000; + // This is enough for 1 delegation and 1 autoclaim. But it is probably too low for + // a lot of auto-claims. See https://github.com/cosmos/cosmos-multisig-ui/issues/177. + return 400_000; case MsgTypeUrls.Undelegate: - return 150_000; + return 400_000; case MsgTypeUrls.CreateVestingAccount: return 100_000; case MsgTypeUrls.Transfer: