acounts/abi: refactor abi, generalize abi pack/unpack to Arguments

This commit is contained in:
Martin Holst Swende
2017-12-21 10:26:30 +01:00
parent 81d4cafb32
commit 73d4a57d47
7 changed files with 260 additions and 251 deletions

View File

@ -22,7 +22,6 @@ import (
"fmt"
"log"
"math/big"
"reflect"
"strings"
"testing"
@ -75,9 +74,12 @@ func TestReader(t *testing.T) {
}
// deep equal fails for some reason
t.Skip()
if !reflect.DeepEqual(abi, exp) {
t.Errorf("\nabi: %v\ndoes not match exp: %v", abi, exp)
//t.Skip()
// Check with String() instead
expS := fmt.Sprintf("%v",exp)
gotS := fmt.Sprintf("%v", abi)
if expS != gotS {
t.Errorf("\nGot abi: \n%v\ndoes not match expected \n%v", abi, exp)
}
}