Skip to content

Make all precompiles active by default #636

@vladjdk

Description

@vladjdk

evm/evmd/app.go

Lines 564 to 579 in 0afdc34

// NOTE: we are adding all available Cosmos EVM EVM extensions.
// Not all of them need to be enabled, which can be configured on a per-chain basis.
app.EVMKeeper.WithStaticPrecompiles(
NewAvailableStaticPrecompiles(
*app.StakingKeeper,
app.DistrKeeper,
app.PreciseBankKeeper,
app.Erc20Keeper,
app.TransferKeeper,
app.IBCKeeper.ChannelKeeper,
app.EVMKeeper,
app.GovKeeper,
app.SlashingKeeper,
app.AppCodec(),
),
)

Currently, you're required to add the precompile config into your chain. This should be optional, and they should all be available by default unless specified otherwise.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions