Skip to content

Commit

Permalink
feat: Use x/precisebank for x/evm keeper (#1960)
Browse files Browse the repository at this point in the history
Replace x/evmutil EvmBankKeeper usage for x/evm
  • Loading branch information
drklee3 committed Jul 10, 2024
1 parent 9de9de6 commit d2d6612
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1,174 deletions.
7 changes: 4 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,19 +550,20 @@ func NewApp(
app.accountKeeper,
)

// TODO: Pass this to evmkeeper.NewKeeper() instead of evmutilKeeper
app.precisebankKeeper = precisebankkeeper.NewKeeper(
app.appCodec,
keys[precisebanktypes.StoreKey],
app.bankKeeper,
app.accountKeeper,
)

evmBankKeeper := evmutilkeeper.NewEvmBankKeeper(app.evmutilKeeper, app.bankKeeper, app.accountKeeper)
app.evmKeeper = evmkeeper.NewKeeper(
appCodec, keys[evmtypes.StoreKey], tkeys[evmtypes.TransientKey],
govAuthAddr,
app.accountKeeper, evmBankKeeper, app.stakingKeeper, app.feeMarketKeeper,
app.accountKeeper,
app.precisebankKeeper, // x/precisebank in place of x/bank
app.stakingKeeper,
app.feeMarketKeeper,
nil, // precompiled contracts
geth.NewEVM,
options.EVMTrace,
Expand Down
281 changes: 0 additions & 281 deletions x/evmutil/keeper/bank_keeper.go

This file was deleted.

Loading

0 comments on commit d2d6612

Please sign in to comment.