Skip to content

Commit

Permalink
fix MsgSubmitTx parsing on MsgServer
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 17, 2024
1 parent 5f9b01e commit f4d56e7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions x/interchaintxs/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,7 @@ func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error) {
return value, nil
}

// implements UnpackInterfacesMessage.UnpackInterfaces (https://github.com/cosmos/cosmos-sdk/blob/d07d35f29e0a0824b489c552753e8798710ff5a8/codec/types/interface_registry.go#L60)
func (msg *MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {

Check failure on line 122 in x/interchaintxs/types/tx.go

View workflow job for this annotation

GitHub Actions / lint

unused-parameter: parameter 'unpacker' seems to be unused, consider removing or renaming it as _ (revive)
var sdkMsg sdk.Msg
for _, m := range msg.Msgs {
if err := unpacker.UnpackAny(m, &sdkMsg); err != nil {
return err
}
}
return nil
}

Expand Down

0 comments on commit f4d56e7

Please sign in to comment.