Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jan 31, 2025
1 parent bd37671 commit 56aa39e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions x/intertx/types/msgs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package types

import (
fmt "fmt"
"strings"

"cosmossdk.io/core/address"
Expand All @@ -10,8 +9,6 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

proto "github.com/cosmos/gogoproto/proto"
)

var (
Expand Down Expand Up @@ -59,12 +56,7 @@ func NewMsgSubmitTx(sdkMsg sdk.Msg, connectionID, owner string) (*MsgSubmitTx, e

// PackTxMsgAny marshals the sdk.Msg payload to a protobuf Any type
func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error) {
msg, ok := sdkMsg.(proto.Message)
if !ok {
return nil, fmt.Errorf("can't proto marshal %T", sdkMsg)
}

protoAny, err := codectypes.NewAnyWithValue(msg)
protoAny, err := codectypes.NewAnyWithValue(sdkMsg)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 56aa39e

Please sign in to comment.