Skip to content

Commit

Permalink
mock beacon root
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen committed Apr 2, 2024
1 parent 1127dbd commit 695cb8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/evm/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ func (server msgServer) applyEVMMessage(ctx sdk.Context, msg *core.Message, stat
txCtx := core.NewEVMTxContext(msg)
evmInstance := vm.NewEVM(*blockCtx, txCtx, stateDB, cfg, vm.Config{})
stateDB.SetEVM(evmInstance)
if server.EthReplayConfig.Enabled {
if beaconRoot := server.ReplayBlock.BeaconRoot(); beaconRoot != nil {
core.ProcessBeaconBlockRoot(*beaconRoot, evmInstance, stateDB)
}
}
st := core.NewStateTransition(evmInstance, msg, &gp)
res, err := st.TransitionDb()
return res, err
Expand Down

0 comments on commit 695cb8d

Please sign in to comment.