aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
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 /ethutil
parent490ca410c01a1b8076214d00c21d2edf09c24f86 (diff)
downloaddexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar.gz
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar.bz2
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar.lz
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar.xz
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.tar.zst
dexon-5d57b7847105639efe1945e1ff588b1116a11a54.zip
Added big int to uint switch
Diffstat (limited to 'ethutil')
-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