Skip to content

Commit

Permalink
fix: fixed depinject issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbeng committed Aug 16, 2024
1 parent c3d363b commit 9c1ccc9
Show file tree
Hide file tree
Showing 13 changed files with 12,007 additions and 7,972 deletions.
213 changes: 107 additions & 106 deletions api/artela/evm/tx.pulsar.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ import (
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
"github.com/spf13/cast"

srvflags "github.com/artela-network/artela-rollkit/ethereum/server/flags"

"github.com/artela-network/artela-rollkit/app/ante"
"github.com/artela-network/artela-rollkit/app/ante/evm"
"github.com/artela-network/artela-rollkit/app/post"
srvflags "github.com/artela-network/artela-rollkit/ethereum/server/flags"
artela "github.com/artela-network/artela-rollkit/ethereum/types"
evmmodulekeeper "github.com/artela-network/artela-rollkit/x/evm/keeper"
"github.com/artela-network/artela-rollkit/x/evm/types"
feemodulekeeper "github.com/artela-network/artela-rollkit/x/fee/keeper"
// this line is used by starport scaffolding # stargate/app/moduleImport

Expand Down Expand Up @@ -231,11 +231,11 @@ func New(
logger,

// Supply block height getter, required by evm keeper
app.LastBlockHeight,
types.BlockGetter(app.LastBlockHeight),

// Supply subspace params getter, required by fee and evm keeper
app.GetSubspace,
app.ChainID,
types.ChainIDGetter(app.ChainID),

// ADVANCED CONFIGURATION
//
Expand Down
3 changes: 3 additions & 0 deletions cmd/artelad/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/spf13/pflag"

"github.com/artela-network/artela-rollkit/app"
evmmoduletypes "github.com/artela-network/artela-rollkit/x/evm/types"
)

// NewRootCmd creates a new root command for artelad. It is called once in the main function.
Expand All @@ -42,6 +43,8 @@ func NewRootCmd() *cobra.Command {
depinject.Configs(app.AppConfig(),
depinject.Supply(
log.NewNopLogger(),
evmmoduletypes.BlockGetter(nil),
evmmoduletypes.ChainIDGetter(nil),
),
depinject.Provide(
ProvideClientContext,
Expand Down
Loading

0 comments on commit 9c1ccc9

Please sign in to comment.