core/vm: implement metropolis static call opcode
This commit is contained in:
committed by
Péter Szilágyi
parent
9facf6423d
commit
3d123bcde6
@ -74,6 +74,13 @@ func memoryDelegateCall(stack *Stack) *big.Int {
|
||||
return math.BigMax(x, y)
|
||||
}
|
||||
|
||||
func memoryStaticCall(stack *Stack) *big.Int {
|
||||
x := calcMemSize(stack.Back(4), stack.Back(5))
|
||||
y := calcMemSize(stack.Back(2), stack.Back(3))
|
||||
|
||||
return math.BigMax(x, y)
|
||||
}
|
||||
|
||||
func memoryReturn(stack *Stack) *big.Int {
|
||||
return calcMemSize(stack.Back(0), stack.Back(1))
|
||||
}
|
||||
|
Reference in New Issue
Block a user