Skip to content

Commit a7e1bc3

Browse files
committed
add note for us pinning to OpSpecId::BEDROCK here, we should make this configurable
1 parent 084c0ad commit a7e1bc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/anvil/src/eth/backend/executor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ where
429429
I: Inspector<EthEvmContext<DB>> + Inspector<OpContext<DB>>,
430430
{
431431
if env.is_optimism {
432+
// TODO: we currently pin to `OpSpecId::BEDROCK` as it is primarily used in the context of
433+
// testing deposit transactions. We should make this configurable in the future.
432434
let op_cfg = env.evm_env.cfg_env.clone().with_spec(op_revm::OpSpecId::BEDROCK);
433435
let op_context = OpContext {
434436
journaled_state: {

0 commit comments

Comments
 (0)