Skip to content

Commit

Permalink
core/vm: Enabling EIP-3860 doesn't modify original jump table
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Nov 30, 2021
1 parent a409d9f commit b6b7fd4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/vm/eips.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ func opBaseFee(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]
}

func enable3860(jt *JumpTable) {
jt[CREATE].dynamicGas = gasCreateEip3860
jt[CREATE2].dynamicGas = gasCreate2Eip3860
createOp := *jt[CREATE]
createOp.dynamicGas = gasCreateEip3860
jt[CREATE] = &createOp

create2Op := *jt[CREATE2]
create2Op.dynamicGas = gasCreate2Eip3860
jt[CREATE2] = &create2Op
}

0 comments on commit b6b7fd4

Please sign in to comment.