Skip to content

Commit

Permalink
fix to use relateive timeout timestamp at intertx submit tx
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Feb 25, 2025
1 parent d86b208 commit 95ccc25
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x/intertx/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ func (k msgServer) SubmitTx(goCtx context.Context, msg *types.MsgSubmitTx) (*typ
Data: data,
}

// timeoutTimestamp set to max value with the unsigned bit shifted to satisfy hermes timestamp conversion
// it is the responsibility of the auth module developer to ensure an appropriate timeout timestamp
timeoutTimestamp := ctx.BlockTime().Add(time.Minute).UnixNano()

icaMsg := icacontrollertypes.NewMsgSendTx(msg.Owner, msg.ConnectionId, uint64(timeoutTimestamp), packetData)
relativeTimeoutTimestamp := uint64((time.Minute * 5).Nanoseconds())
icaMsg := icacontrollertypes.NewMsgSendTx(msg.Owner, msg.ConnectionId, uint64(relativeTimeoutTimestamp), packetData)
_, err = k.icaControllerMsgServer.SendTx(ctx, icaMsg)
if err != nil {
return nil, err
Expand Down

0 comments on commit 95ccc25

Please sign in to comment.