Skip to content

Commit 6470abe

Browse files
committed
Fix gas consumption
1 parent eac3d9d commit 6470abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/wasm/keeper/handler_plugin_encoders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func EncodeAnyMsg(unpacker codectypes.AnyUnpacker) AnyEncoder {
213213
}
214214
var sdkMsg sdk.Msg
215215

216-
ctx.GasMeter().ConsumeGas((700000*uint64(len(msg.Value)))/types.DefaultGasMultiplier, "unpacking AnyMsg")
216+
ctx.GasMeter().ConsumeGas(700000/types.DefaultGasMultiplier, "unpacking AnyMsg")
217217
if err := unpacker.UnpackAny(&codecAny, &sdkMsg); err != nil {
218218
return nil, errorsmod.Wrap(types.ErrInvalidMsg, fmt.Sprintf("Cannot unpack proto message with type URL: %s", msg.TypeURL))
219219
}

0 commit comments

Comments
 (0)