Skip to content

Commit

Permalink
remove callex
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Sep 18, 2024
1 parent 840012f commit bb5b658
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions core/vm/eips.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,10 @@ func enable2929(jt *JumpTable) {
func enableAP1(jt *JumpTable) {
jt[SSTORE].dynamicGas = gasSStoreAP1
jt[SELFDESTRUCT].dynamicGas = gasSelfdestructAP1
jt[CALLEX].dynamicGas = gasCallExpertAP1
}

func enableAP2(jt *JumpTable) {
jt[BALANCEMC] = &operation{execute: opUndefined, maxStack: maxStack(0, 0)}
jt[CALLEX] = &operation{execute: opUndefined, maxStack: maxStack(0, 0)}
}

// enable3198 applies EIP-3198 (BASEFEE Opcode)
Expand Down
9 changes: 0 additions & 9 deletions core/vm/jump_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ func newTangerineWhistleInstructionSet() JumpTable {
instructionSet[SLOAD].constantGas = params.SloadGasEIP150
instructionSet[EXTCODECOPY].constantGas = params.ExtcodeCopyBaseEIP150
instructionSet[CALL].constantGas = params.CallGasEIP150
instructionSet[CALLEX].constantGas = params.CallGasEIP150
instructionSet[CALLCODE].constantGas = params.CallGasEIP150
instructionSet[DELEGATECALL].constantGas = params.CallGasEIP150
return validate(instructionSet)
Expand Down Expand Up @@ -1053,14 +1052,6 @@ func newFrontierInstructionSet() JumpTable {
maxStack: maxStack(7, 1),
memorySize: memoryCall,
},
CALLEX: {
execute: opCallExpert,
constantGas: params.CallGasFrontier,
dynamicGas: gasCallExpert,
minStack: minStack(9, 1),
maxStack: maxStack(9, 1),
memorySize: memoryCallExpert,
},
CALLCODE: {
execute: opCallCode,
constantGas: params.CallGasFrontier,
Expand Down
3 changes: 0 additions & 3 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const (

const (
BALANCEMC = 0xcd
CALLEX = 0xcf
)

// 0xf0 range - closures.
Expand Down Expand Up @@ -401,7 +400,6 @@ var opCodeToString = [256]string{
// 0xf0 range - closures.
CREATE: "CREATE",
CALL: "CALL",
CALLEX: "CALLEX",
RETURN: "RETURN",
CALLCODE: "CALLCODE",
DELEGATECALL: "DELEGATECALL",
Expand Down Expand Up @@ -565,7 +563,6 @@ var stringToOp = map[string]OpCode{
"CREATE": CREATE,
"CREATE2": CREATE2,
"CALL": CALL,
"CALLEX": CALLEX,
"RETURN": RETURN,
"CALLCODE": CALLCODE,
"REVERT": REVERT,
Expand Down

0 comments on commit bb5b658

Please sign in to comment.