Skip to content

Commit

Permalink
register precompiles
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTrustyDev committed Dec 2, 2024
1 parent 56e3284 commit 734acc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"fmt"
"github.com/dymensionxyz/rollapp-evm/x/cpc"
"io"
"net/http"
"os"
Expand Down Expand Up @@ -654,6 +655,10 @@ func NewRollapp(
ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferStack)
app.IBCKeeper.SetRouter(ibcRouter)

/**** Register custom precompiled contract using keepers ****/
const enablePrecompilesAtVersion = 0 // future precompiles should be enabled at a higher version and x/evm module params should be updated, the goal is to avoid breaking state when replay blocks
evmkeeper.RegisterCustomPrecompiledContract(cpc.NewPreFeedCustomPrecompiledContract(app.EvmKeeper), enablePrecompilesAtVersion)

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

// NOTE: Any module instantiated in the module manager that is later modified
Expand Down

0 comments on commit 734acc9

Please sign in to comment.