diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-17 17:21:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-17 17:21:18 +0800 |
commit | ed3424ff75b396360990725afc124326dea4ab45 (patch) | |
tree | 1d1bc85f1133d5138e3c23bfdadadce54d1354ec /ethchain/vm.go | |
parent | 14c4f06100d9f06592097c4ee588d0f83f6b17bd (diff) | |
download | go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar.gz go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar.bz2 go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar.lz go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar.xz go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.tar.zst go-tangerine-ed3424ff75b396360990725afc124326dea4ab45.zip |
Trie fixes
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r-- | ethchain/vm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go index 3a956ee83..58d1bee89 100644 --- a/ethchain/vm.go +++ b/ethchain/vm.go @@ -195,7 +195,7 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) { val := closure.GetStorage(x) if val.BigInt().Cmp(ethutil.Big0) == 0 && len(y.Bytes()) > 0 { mult = ethutil.Big2 - } else if !val.IsEmpty() && len(y.Bytes()) == 0 { + } else if val.BigInt().Cmp(ethutil.Big0) != 0 && len(y.Bytes()) == 0 { mult = ethutil.Big0 } else { mult = ethutil.Big1 |