aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-22 22:16:00 +0800
committerobscuren <geffobscura@gmail.com>2014-07-22 22:16:00 +0800
commit5d57b7847105639efe1945e1ff588b1116a11a54 (patch)
treebbecb1f97ca64a4eede11cf77c2280aa60b82b75
parent490ca410c01a1b8076214d00c21d2edf09c24f86 (diff)
downloadgo-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar.gz
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar.bz2
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar.lz
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar.xz
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.tar.zst
go-tangerine-5d57b7847105639efe1945e1ff588b1116a11a54.zip
Added big int to uint switch
-rw-r--r--ethutil/value.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethutil/value.go b/ethutil/value.go
index fba7426d1..735a71dbc 100644
--- a/ethutil/value.go
+++ b/ethutil/value.go
@@ -68,6 +68,8 @@ func (val *Value) Uint() uint64 {
return uint64(Val)
} else if Val, ok := val.Val.([]byte); ok {
return ReadVarint(bytes.NewReader(Val))
+ } else if Val, ok := val.Val.(*big.Int); ok {
+ return Val.Uint64()
}
return 0