diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-08-15 16:23:23 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-15 18:03:49 +0800 |
commit | 3d123bcde67973b57c0a9e7edc219cc2ea589443 (patch) | |
tree | e806ab2faae07184fdcdfe23488b7111e75a9057 /core/vm/memory_table.go | |
parent | 9facf6423dbd38ebd7fbd9069cbcb98b0fd243c2 (diff) | |
download | dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.gz dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.bz2 dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.lz dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.xz dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.zst dexon-3d123bcde67973b57c0a9e7edc219cc2ea589443.zip |
core/vm: implement metropolis static call opcode
Diffstat (limited to 'core/vm/memory_table.go')
-rw-r--r-- | core/vm/memory_table.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go index 654137c70..9d293a2f2 100644 --- a/core/vm/memory_table.go +++ b/core/vm/memory_table.go @@ -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)) } |