From 151f9c7f8214a2702a76f36f566b52266949ac89 Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 22 Sep 2014 14:50:53 +0200 Subject: [PATCH] BigInt accept string --- ethutil/value.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethutil/value.go b/ethutil/value.go index e8148b990..b1f887f29 100644 --- a/ethutil/value.go +++ b/ethutil/value.go @@ -118,6 +118,8 @@ func (val *Value) BigInt() *big.Int { return b } else if a, ok := val.Val.(*big.Int); ok { return a + } else if a, ok := val.Val.(string); ok { + return Big(a) } else { return big.NewInt(int64(val.Uint())) }