diff --git a/abi/abi_test.go b/abi/abi_test.go index e13e82702b..f918ba0033 100644 --- a/abi/abi_test.go +++ b/abi/abi_test.go @@ -26,7 +26,7 @@ func TestNewABI(t *testing.T) { Outer{}, ActionWithOutput{}, FixedBytes{}, - Booleans{}, + Bools{}, }, []codec.Typed{ ActionOutput{}, }) diff --git a/abi/auto_marshal_abi_spec_test.go b/abi/auto_marshal_abi_spec_test.go index 4e35b179cc..4cbc744d34 100644 --- a/abi/auto_marshal_abi_spec_test.go +++ b/abi/auto_marshal_abi_spec_test.go @@ -60,7 +60,7 @@ func TestMarshalSpecs(t *testing.T) { {"strOnly", &MockObjectStringAndBytes{}}, {"outer", &Outer{}}, {"fixedBytes", &FixedBytes{}}, - {"booleans", &Booleans{}}, + {"bools", &Bools{}}, } for _, tc := range testCases { diff --git a/abi/mockabi_test.go b/abi/mockabi_test.go index d86fb5e7da..6a5355ec79 100644 --- a/abi/mockabi_test.go +++ b/abi/mockabi_test.go @@ -70,7 +70,7 @@ type FixedBytes struct { ThirtyTwoBytes [32]uint8 `serialize:"true" json:"thirtyTwoBytes"` } -type Booleans struct { +type Bools struct { Bool1 bool `serialize:"true" json:"bool1"` Bool2 bool `serialize:"true" json:"bool2"` BoolArray []bool `serialize:"true" json:"boolArray"` @@ -120,7 +120,7 @@ func (FixedBytes) GetTypeID() uint8 { return 9 } -func (Booleans) GetTypeID() uint8 { +func (Bools) GetTypeID() uint8 { return 10 } diff --git a/abi/testdata/abi.hash.hex b/abi/testdata/abi.hash.hex index 3ec1bdd443..ebbaaf8b49 100644 --- a/abi/testdata/abi.hash.hex +++ b/abi/testdata/abi.hash.hex @@ -1 +1 @@ -58a84810851491da7378318c3439393ba91da1e85dab59d39ca5a6da16a90345 +3b634237434bc35076e790b52986d735f30d582e9b7b94ad357d91b33072e284 diff --git a/abi/testdata/abi.json b/abi/testdata/abi.json index dfb3b08222..673aefdaf2 100644 --- a/abi/testdata/abi.json +++ b/abi/testdata/abi.json @@ -42,7 +42,7 @@ }, { "id": 10, - "name": "Booleans" + "name": "Bools" } ], "outputs": [ @@ -236,7 +236,7 @@ ] }, { - "name": "Booleans", + "name": "Bools", "fields": [ { "name": "bool1", diff --git a/abi/testdata/booleans.hex b/abi/testdata/bools.hex similarity index 100% rename from abi/testdata/booleans.hex rename to abi/testdata/bools.hex diff --git a/abi/testdata/bools.json b/abi/testdata/bools.json new file mode 100644 index 0000000000..8102f3d71c --- /dev/null +++ b/abi/testdata/bools.json @@ -0,0 +1,9 @@ +{ + "bool1": false, + "bool2": true, + "boolArray": [ + true, + false, + true + ] +}