Skip to content

Commit

Permalink
Merge pull request #287 from stratosnet/audit
Browse files Browse the repository at this point in the history
merge Audit to dev
  • Loading branch information
jinzuo-qsn authored Jul 6, 2023
2 parents ef7a686 + 959f789 commit f3ff08b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ func NewInitApp(
tracer := cast.ToString(appOpts.Get(srvflags.EVMTracer))
app.evmKeeper = evmkeeper.NewKeeper(
appCodec, keys[evmtypes.StoreKey], tKeys[evmtypes.TransientKey], app.GetSubspace(evmtypes.ModuleName),
app.accountKeeper, app.bankKeeper, app.stakingKeeper,
tracer,
app.accountKeeper, app.bankKeeper, app.stakingKeeper, tracer,
)

// Create IBC Keeper
Expand Down Expand Up @@ -436,6 +435,8 @@ func NewInitApp(
app.registerKeeper,
app.potKeeper,
)
// set PotKeeper to evm module
app.evmKeeper.SetPotKeeper(app.potKeeper)

/**** Module Options ****/

Expand Down
4 changes: 4 additions & 0 deletions x/evm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger {
return ctx.Logger().With("module", types.ModuleName)
}

func (k *Keeper) SetPotKeeper(potk types.PotKeeper) {
k.potKeeper = potk
}

// ----------------------------------------------------------------------------
// Block Bloom
// Required by Web3 API.
Expand Down

0 comments on commit f3ff08b

Please sign in to comment.