aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/abi.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-12-15 06:34:27 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-01-09 17:36:33 +0800
commit47372813efa13e8f92b90e70ab46b69e6792d8c7 (patch)
treed76ee4146bc76a5957b0f6c7a1fd8fc065ddecfa /accounts/abi/abi.go
parentfc213c873d2e922a606f08a1a6323243da26dd2a (diff)
downloaddexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar.gz
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar.bz2
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar.lz
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar.xz
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.tar.zst
dexon-47372813efa13e8f92b90e70ab46b69e6792d8c7.zip
accounts/abi: fixed comments
Diffstat (limited to 'accounts/abi/abi.go')
-rw-r--r--accounts/abi/abi.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go
index 3af8d41c6..627a2a0c4 100644
--- a/accounts/abi/abi.go
+++ b/accounts/abi/abi.go
@@ -91,9 +91,8 @@ func toGoSlice(i int, t Argument, output []byte) (interface{}, error) {
// first we need to create a slice of the type
var refSlice reflect.Value
switch elem.T {
- case IntTy, UintTy, BoolTy: //we need to create the correct type of array otherwise we see the following issue;
- //cannot unmarshal []*big.Int in to []uint32 as described in
- //https://github.com/ethereum/go-ethereum/issues/2802
+ case IntTy, UintTy, BoolTy:
+ // create a new reference slice matching the element type
switch t.Type.Kind {
case reflect.Bool:
refSlice = reflect.ValueOf([]bool(nil))