385:     finalizedL1Sequence, err := ms.GetNextL1Sequence(ctx)
386:     if err != nil {
387:         return nil, err
388:     }
389:
390:     if req.Sequence < finalizedL1Sequence {
391:         // No op instead of returning an error
392:         return &types.MsgFinalizeTokenDepositResponse{Result: types.NOOP}, nil
393:     } else if req.Sequence > finalizedL1Sequence {
394:         return nil, types.ErrInvalidSequence
395:     }
195: type MsgFinalizeTokenDeposit struct {
196:     // the sender address
197:     Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
198:     // from is l1 sender address
199:     From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
200:     // to is l2 recipient address
201:     To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
202:     // amount is the coin amount to deposit.
203:     Amount types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount" yaml:"amount"`
204:     // sequence is the sequence number of l1 bridge
205:     Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
206:     // height is the height of l1 which is including the deposit message
207:     Height uint64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
208:     // base_denom is the l1 denomination of the sent coin.
209:     BaseDenom string `protobuf:"bytes,7,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
210:     /// data is a extra bytes for hooks.
211:     Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
212: }
349: type MsgInitiateTokenDeposit struct {
350:     Sender   string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
351:     BridgeId uint64     `protobuf:"varint,2,opt,name=bridge_id,json=bridgeId,proto3" json:"bridge_id,omitempty" yaml:"bridge_id"`
352:     To       string     `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty" yaml:"to"`
353:     Amount   types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount" yaml:"amount"`
354:     Data     []byte     `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
355: }
api := make(testutil.Toml)
api["rpc-max-body-bytes"] = 5_000_000
c["api"] = api
configToml := make(testutil.Toml)
rpc := make(testutil.Toml)
rpc["max_body_bytes"] = 5_000_000
configToml["rpc"] = rpc

err = testutil.ModifyTomlConfigFile(ctx, logger, client, t.Name(), l1Chain.Validators[0].VolumeName, "config/config.toml", configToml)
require.NoError(t, err)
2025-01-13T22:05:38.586Z    WARN    executor    broadcaster/process.go:119    retry to handle processed msgs    {"seconds": 8, "count": 2, "error": "simulation failed: error in json rpc client, with http response metadata: (Status: 400 Bad Request, Protocol HTTP/1.1). RPC error -32600 - Invalid Request: error reading request body: http: request body too large"}
            dataLen, err := strconv.ParseUint(args[3], 10, 64)
            if err != nil {
                return err
            }

            data := make([]byte, dataLen)
  initia git:(main)  build/initiad tx ophost initiate-token-deposit 1 abc 1uinit 749667 --from=validator --chain-id=initia-1
[...]
raw_log: 'out of gas in location: txSize; gasWanted: 200000, gasUsed: 7500502: out
  of gas'
[...]

  initia git:(main)  build/initiad tx ophost initiate-token-deposit 1 abc 1uinit 749668 --from=validator --chain-id=initia-1
[...]
error in json rpc client, with http response metadata: (Status: 400 Bad Request, Protocol HTTP/1.1). RPC error -32600 - Invalid Request: error reading request body: http: request body too large
