From 68119d0929adebdbd39dd40982264f86164bd6e6 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 26 Sep 2014 13:32:54 +0200 Subject: Fixed messages to use proper numbers --- ethutil/value.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ethutil') 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 { -- cgit