aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-26 19:32:54 +0800
committerobscuren <geffobscura@gmail.com>2014-09-26 19:32:54 +0800
commit68119d0929adebdbd39dd40982264f86164bd6e6 (patch)
tree4da88788275c960f3b82581c7f5e24b72c097130 /ethutil
parent9ed8dc7384deb932be624699d9f628d3d00ba31e (diff)
downloadgo-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.gz
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.bz2
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.lz
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.xz
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.zst
go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.zip
Fixed messages to use proper numbers
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/value.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethutil/value.go b/ethutil/value.go
index b1f887f29..dd777fa43 100644
--- a/ethutil/value.go
+++ b/ethutil/value.go
@@ -63,6 +63,10 @@ func (val *Value) Uint() uint64 {
return uint64(Val)
} else if Val, ok := val.Val.(uint64); ok {
return Val
+ } else if Val, ok := val.Val.(float32); ok {
+ return uint64(Val)
+ } else if Val, ok := val.Val.(float64); ok {
+ return uint64(Val)
} else if Val, ok := val.Val.(int); ok {
return uint64(Val)
} else if Val, ok := val.Val.(uint); ok {