diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-07 17:05:53 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-07 17:05:53 +0800 |
commit | 6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f (patch) | |
tree | a1709b5ca22500683aa68ddbe53f331fe15435a6 /ethchain/vm_test.go | |
parent | 45ce820b111ab2b4e4c7b8d83dd8bebf1bb37bad (diff) | |
parent | 76d7bad722dd4e5a94a3665ad94af65e2f421a8b (diff) | |
download | go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar.gz go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar.bz2 go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar.lz go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar.xz go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.tar.zst go-tangerine-6c66cb3fa9d73fbb9f570a3f1b7f7dcd24ee2b7f.zip |
Merge branch 'develop' of github.com:ethereum/eth-go into develop
Diffstat (limited to 'ethchain/vm_test.go')
-rw-r--r-- | ethchain/vm_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ethchain/vm_test.go b/ethchain/vm_test.go index 35a7b2e3f..f4a0197ea 100644 --- a/ethchain/vm_test.go +++ b/ethchain/vm_test.go @@ -86,7 +86,7 @@ func TestRun4(t *testing.T) { int32 a = 10 int32 b = 20 if a > b { - int32 c = this.Caller() + int32 c = this.caller() } Exit() `), false) @@ -98,21 +98,21 @@ func TestRun4(t *testing.T) { callerScript, err := mutan.Compile(strings.NewReader(` // Check if there's any cash in the initial store - if store[1000] == 0 { - store[1000] = 10^20 + if this.store[1000] == 0 { + this.store[1000] = 10^20 } - store[1001] = this.Value() * 20 - store[this.Origin()] = store[this.Origin()] + 1000 + this.store[1001] = this.value() * 20 + this.store[this.origin()] = this.store[this.origin()] + 1000 - if store[1001] > 20 { - store[1001] = 10^50 + if this.store[1001] > 20 { + this.store[1001] = 10^50 } int8 ret = 0 int8 arg = 10 - Call(0xe6a12555fad1fb6eaaaed69001a87313d1fd7b54, 0, 100, arg, ret) + call(0xe6a12555fad1fb6eaaaed69001a87313d1fd7b54, 0, 100, arg, ret) big t for int8 i = 0; i < 10; i++ { |