core/vm: implement metropolis static call opcode

This commit is contained in:
Jeffrey Wilcke
2017-08-15 11:23:23 +03:00
committed by Péter Szilágyi
parent 9facf6423d
commit 3d123bcde6
7 changed files with 153 additions and 3 deletions

View File

@ -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))
}