diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-21 04:12:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-21 04:12:42 +0800 |
commit | 93e12250c702521807247a66d74cc0792370d83b (patch) | |
tree | f3b2f2c8d42b5502823d1c3e1ebb682b91db29e2 | |
parent | f4551a7e9f90dd10b22ccfcdaf59d1a6a35283cf (diff) | |
download | go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar.gz go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar.bz2 go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar.lz go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar.xz go-tangerine-93e12250c702521807247a66d74cc0792370d83b.tar.zst go-tangerine-93e12250c702521807247a66d74cc0792370d83b.zip |
Switch variables as intended
-rw-r--r-- | ethereum/javascript_runtime.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum/javascript_runtime.go b/ethereum/javascript_runtime.go index 76ced3f3d..fa01c7005 100644 --- a/ethereum/javascript_runtime.go +++ b/ethereum/javascript_runtime.go @@ -101,7 +101,7 @@ out: cb.Call(cb, val) } } else if storageObject, ok := object.Resource.(*ethchain.StorageState); ok { - for _, cb := range self.objectCb[ethutil.Hex(storageObject.Address)+ethutil.Hex(storageObject.StateAddress)] { + for _, cb := range self.objectCb[ethutil.Hex(storageObject.StateAddress)+ethutil.Hex(storageObject.Address)] { val, _ := self.vm.ToValue(ethpub.NewPStorageState(storageObject)) cb.Call(cb, val) } @@ -115,7 +115,7 @@ func (self *JSRE) initStdFuncs() { eth := t.Object() eth.Set("watch", self.watch) eth.Set("addPeer", self.addPeer) - self.Set("require", self.require) + eth.Set("require", self.require) } /* |