aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-17 17:21:18 +0800
committerobscuren <geffobscura@gmail.com>2014-07-17 17:21:18 +0800
commited3424ff75b396360990725afc124326dea4ab45 (patch)
tree1d1bc85f1133d5138e3c23bfdadadce54d1354ec /ethchain/vm.go
parent14c4f06100d9f06592097c4ee588d0f83f6b17bd (diff)
downloadgo-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.go2
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