aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/parsing.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 21:47:55 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 21:47:55 +0800
commit2ea4c632d1673b762c1af11582364d9faa08c413 (patch)
treec9e87a5d79eb1bbeaee691a056a2e6974b6ba3f5 /ethutil/parsing.go
parentfa1db8d2dcbc12fd9b343e6572c541d92fe7cb55 (diff)
downloadgo-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar.gz
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar.bz2
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar.lz
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar.xz
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.tar.zst
go-tangerine-2ea4c632d1673b762c1af11582364d9faa08c413.zip
Closure return, arguments fixed. Added proper tests
Diffstat (limited to 'ethutil/parsing.go')
-rw-r--r--ethutil/parsing.go28
1 files changed, 13 insertions, 15 deletions
diff --git a/ethutil/parsing.go b/ethutil/parsing.go
index b2e9d9fee..f24402623 100644
--- a/ethutil/parsing.go
+++ b/ethutil/parsing.go
@@ -33,24 +33,22 @@ var OpCodes = map[string]byte{
"SHA3": 0x20,
// 0x30 range - closure state
- "ADDRESS": 0x30,
- "BALANCE": 0x31,
- "ORIGIN": 0x32,
- "CALLER": 0x33,
- "CALLVALUE": 0x34,
- "CALLDATA": 0x35,
- "CALLDATASIZE": 0x36,
- "RETURNDATASIZE": 0x37,
- "TXGASPRICE": 0x38,
+ "ADDRESS": 0x30,
+ "BALANCE": 0x31,
+ "ORIGIN": 0x32,
+ "CALLER": 0x33,
+ "CALLVALUE": 0x34,
+ "CALLDATA": 0x35,
+ "CALLDATASIZE": 0x36,
+ "GASPRICE": 0x38,
// 0x40 range - block operations
"PREVHASH": 0x40,
- "PREVNONCE": 0x41,
- "COINBASE": 0x42,
- "TIMESTAMP": 0x43,
- "NUMBER": 0x44,
- "DIFFICULTY": 0x45,
- "GASLIMIT": 0x46,
+ "COINBASE": 0x41,
+ "TIMESTAMP": 0x42,
+ "NUMBER": 0x43,
+ "DIFFICULTY": 0x44,
+ "GASLIMIT": 0x45,
// 0x50 range - 'storage' and execution
"PUSH": 0x50,