diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-26 19:32:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-26 19:32:54 +0800 |
commit | 68119d0929adebdbd39dd40982264f86164bd6e6 (patch) | |
tree | 4da88788275c960f3b82581c7f5e24b72c097130 /ethutil | |
parent | 9ed8dc7384deb932be624699d9f628d3d00ba31e (diff) | |
download | go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.gz go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.tar.zst go-tangerine-68119d0929adebdbd39dd40982264f86164bd6e6.zip |
Fixed messages to use proper numbers
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/value.go | 4 |
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 { |