aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-31 04:03:08 +0800
committerobscuren <geffobscura@gmail.com>2014-03-31 04:03:08 +0800
commit7cc28c8b469ba8df8bad1e3bbbba7fbd99b88535 (patch)
tree9e0b7ba472401fcd03b77c4703667edb97f4cf4e /ethchain
parent205e33bc831bb44f41dc899ae41bbfe0e44ddc5d (diff)
downloaddexon-7cc28c8b469ba8df8bad1e3bbbba7fbd99b88535.tar.gz
dexon-7cc28c8b469ba8df8bad1e3bbbba7fbd99b88535.tar.zst
dexon-7cc28c8b469ba8df8bad1e3bbbba7fbd99b88535.zip
Added storage test
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/vm_test.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go
index e3880d26e..2a02bcf4c 100644
--- a/ethchain/vm_test.go
+++ b/ethchain/vm_test.go
@@ -86,14 +86,22 @@ func TestRun4(t *testing.T) {
a = 10
b = 10
if a == b {
- b = 1000
c = 10
+ if c == 10 {
+ d = 1000
+ e = 10
+ }
}
+
+ store[0] = 20
+ test = store[0]
+ store[a] = 20
+ f = store[400]
`), false)
if err != nil {
fmt.Println(err)
}
- asm = append(asm, "LOG")
+ //asm = append(asm, "LOG")
fmt.Println(asm)
callerScript := ethutil.Assemble(asm...)