Commit 7cc28c8b authored by obscuren's avatar obscuren

Added storage test

parent 205e33bc
...@@ -86,14 +86,22 @@ func TestRun4(t *testing.T) { ...@@ -86,14 +86,22 @@ func TestRun4(t *testing.T) {
a = 10 a = 10
b = 10 b = 10
if a == b { if a == b {
b = 1000
c = 10 c = 10
if c == 10 {
d = 1000
e = 10
}
} }
store[0] = 20
test = store[0]
store[a] = 20
f = store[400]
`), false) `), false)
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
asm = append(asm, "LOG") //asm = append(asm, "LOG")
fmt.Println(asm) fmt.Println(asm)
callerScript := ethutil.Assemble(asm...) callerScript := ethutil.Assemble(asm...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment