Skip to content

Commit 1e961d7

Browse files
authored
enable ethpubkey (#72)
1 parent 00a3c03 commit 1e961d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/ante/ante.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
opchildante "github.com/initia-labs/OPinit/x/opchild/ante"
1515
opchildtypes "github.com/initia-labs/OPinit/x/opchild/types"
1616
"github.com/initia-labs/initia/app/ante/accnum"
17+
"github.com/initia-labs/initia/app/ante/sigverify"
1718

1819
"github.com/skip-mev/block-sdk/v2/block"
1920
auctionante "github.com/skip-mev/block-sdk/v2/x/auction/ante"
@@ -111,7 +112,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
111112
ante.NewSetPubKeyDecorator(options.AccountKeeper),
112113
ante.NewValidateSigCountDecorator(options.AccountKeeper),
113114
ante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
114-
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
115+
sigverify.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
115116
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
116117
ibcante.NewRedundantRelayDecorator(options.IBCkeeper),
117118
auctionante.NewAuctionDecorator(options.AuctionKeeper, options.TxEncoder, options.MevLane),

cmd/minitiad/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
4343

4444
"github.com/initia-labs/initia/app/params"
45+
cryptokeyring "github.com/initia-labs/initia/crypto/keyring"
4546
minitiaapp "github.com/initia-labs/miniwasm/app"
4647

4748
opchildcli "github.com/initia-labs/OPinit/x/opchild/client/cli"
@@ -92,7 +93,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
9293
WithInput(os.Stdin).
9394
WithAccountRetriever(types.AccountRetriever{}).
9495
WithHomeDir(minitiaapp.DefaultNodeHome).
95-
WithViper(minitiaapp.EnvPrefix)
96+
WithViper(minitiaapp.EnvPrefix).
97+
WithKeyringOptions(cryptokeyring.Option())
9698

9799
rootCmd := &cobra.Command{
98100
Use: basename,

0 commit comments

Comments
 (0)