chore: migrate sdk.Msg to transaction.type (#20273)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
This commit is contained in:
Marko
2024-05-10 10:23:22 +00:00
committed by GitHub
co-authored by coderabbitai[bot] Hieu Vu
parent 98471350e4
commit 62b0b26d0c
55 changed files with 358 additions and 488 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package types
import (
coretransaction "cosmossdk.io/core/transaction"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
)
@@ -12,7 +14,7 @@ const (
// RegisterLegacyAminoCodec registers the sdk message type.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterInterface((*Msg)(nil), nil)
cdc.RegisterInterface((*coretransaction.Msg)(nil), nil)
cdc.RegisterInterface((*Tx)(nil), nil)
}
+3 -2
View File
@@ -5,9 +5,10 @@ import (
"fmt"
"strings"
"github.com/cosmos/gogoproto/proto"
protov2 "google.golang.org/protobuf/proto"
coretransaction "cosmossdk.io/core/transaction"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
@@ -15,7 +16,7 @@ import (
type (
// Msg defines the interface a transaction message needed to fulfill.
Msg = proto.Message
Msg = coretransaction.Msg
// LegacyMsg defines the interface a transaction message needed to fulfill up through
// v0.47.