refactor: decouple from sdk/codec in amino codec usage (#20369)

This commit is contained in:
Matt Kocubinski
2024-05-14 16:52:51 +00:00
committed by GitHub
parent fbc61d2f5d
commit 493d486bc6
63 changed files with 286 additions and 195 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
package std
import (
"cosmossdk.io/core/legacy"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
@@ -9,7 +11,7 @@ import (
)
// RegisterLegacyAminoCodec registers types with the Amino codec.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
func RegisterLegacyAminoCodec(cdc legacy.Amino) {
sdk.RegisterLegacyAminoCodec(cdc)
cryptocodec.RegisterCrypto(cdc)
codec.RegisterEvidences(cdc)