aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/event_test.go
diff options
context:
space:
mode:
authorRobert Zaremba <robert.zaremba@scale-it.pl>2017-12-02 05:32:04 +0800
committerMartin Holst Swende <martin@swende.se>2017-12-21 22:14:50 +0800
commit81d4cafb324d8c4352a40d2cf33c2085d029cd37 (patch)
tree9675e57a9f7551322c7f4d109c16a905ca026b56 /accounts/abi/event_test.go
parent1afca33eacd39c8cf240d92e9b4310a73de6510f (diff)
downloadgo-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.gz
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.bz2
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.lz
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.xz
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.zst
go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.zip
accounts/abi: add unpack into array test
Diffstat (limited to 'accounts/abi/event_test.go')
-rw-r--r--accounts/abi/event_test.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go
index d966ad1db..34c7eebde 100644
--- a/accounts/abi/event_test.go
+++ b/accounts/abi/event_test.go
@@ -18,10 +18,10 @@ package abi
import (
"bytes"
- "reflect"
"encoding/hex"
"encoding/json"
"math/big"
+ "reflect"
"strings"
"testing"
@@ -180,6 +180,16 @@ func TestEventTupleUnpack(t *testing.T) {
"Can unpack Pledge event into slice",
}, {
pledgeData1,
+ &[3]interface{}{&common.Address{}, &bigint, &[3]byte{}},
+ &[3]interface{}{
+ &addr,
+ &bigintExpected2,
+ &[3]byte{'u', 's', 'd'}},
+ jsonEventPledge,
+ "",
+ "Can unpack Pledge event into an array",
+ }, {
+ pledgeData1,
&[]interface{}{new(int), 0, 0},
&[]interface{}{},
jsonEventPledge,