Skip to content

Commit

Permalink
Added ethermintcodecs to registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix committed Mar 25, 2024
1 parent 74e7a92 commit f63d935
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion block/initchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/evmos/evmos/v12/crypto/hd"
ethermintcodec "github.com/evmos/evmos/v12/encoding/codec"
"github.com/ignite/cli/ignite/pkg/cosmosaccount"
tmtypes "github.com/tendermint/tendermint/types"
)
Expand All @@ -21,7 +22,7 @@ func (m *Manager) RunInitChain(ctx context.Context) error {
// This is a hack to make sure the chain can get both addresses without us needing to change comet signatures:
// The RDK will save a sequencer, and delete the extra validator after initChain, so we also delete it here
// to keep the state in sync.

//get the proposer's consensus pubkey
proposer := m.settlementClient.GetProposer()
tmPubKey, err := cryptocodec.ToTmPubKeyInterface(proposer.PublicKey)
Expand Down Expand Up @@ -68,6 +69,7 @@ func getOperatorPubkey(keyDir, keyringBackend, accountName string) (cryptotypes.

interfaceRegistry := codectypes.NewInterfaceRegistry()
cryptocodec.RegisterInterfaces(interfaceRegistry)
ethermintcodec.RegisterInterfaces(interfaceRegistry)
cdc := codec.NewProtoCodec(interfaceRegistry)

customKeyring, err := keyring.New("operatorAddr", keyringBackend, keyDir, os.Stdin, cdc, hd.EthSecp256k1Option())
Expand Down

0 comments on commit f63d935

Please sign in to comment.