@@ -15,10 +15,10 @@ import (
1515
1616// Note: This file contains tests in addition to those found in go-ethereum.
1717
18- const TEST_ABI = `[{"type":"function","name":"receive","inputs":[{"name":"sender","type":"address"},{"name":"amount","type":"uint256"},{"name":"memo","type":"bytes"}],"outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}]}]`
18+ const TestABI = `[{"type":"function","name":"receive","inputs":[{"name":"sender","type":"address"},{"name":"amount","type":"uint256"},{"name":"memo","type":"bytes"}],"outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}]}]`
1919
2020func TestUnpackInputIntoInterface (t * testing.T ) {
21- abi , err := JSON (strings .NewReader (TEST_ABI ))
21+ abi , err := JSON (strings .NewReader (TestABI ))
2222 require .NoError (t , err )
2323
2424 type inputType struct {
@@ -35,7 +35,7 @@ func TestUnpackInputIntoInterface(t *testing.T) {
3535 rawData , err := abi .Pack ("receive" , input .Sender , input .Amount , input .Memo )
3636 require .NoError (t , err )
3737
38- abi , err = JSON (strings .NewReader (TEST_ABI ))
38+ abi , err = JSON (strings .NewReader (TestABI ))
3939 require .NoError (t , err )
4040
4141 for _ , test := range []struct {
@@ -97,7 +97,7 @@ func TestUnpackInputIntoInterface(t *testing.T) {
9797}
9898
9999func TestPackOutput (t * testing.T ) {
100- abi , err := JSON (strings .NewReader (TEST_ABI ))
100+ abi , err := JSON (strings .NewReader (TestABI ))
101101 require .NoError (t , err )
102102
103103 bytes , err := abi .PackOutput ("receive" , true )
0 commit comments