@@ -43,6 +43,7 @@ const jsondata = `
43
43
{ "type" : "function", "name" : "uint64[2]", "inputs" : [ { "name" : "inputs", "type" : "uint64[2]" } ] },
44
44
{ "type" : "function", "name" : "uint64[]", "inputs" : [ { "name" : "inputs", "type" : "uint64[]" } ] },
45
45
{ "type" : "function", "name" : "int8", "inputs" : [ { "name" : "inputs", "type" : "int8" } ] },
46
+ { "type" : "function", "name" : "bytes32", "inputs" : [ { "name" : "inputs", "type" : "bytes32" } ] },
46
47
{ "type" : "function", "name" : "foo", "inputs" : [ { "name" : "inputs", "type" : "uint32" } ] },
47
48
{ "type" : "function", "name" : "bar", "inputs" : [ { "name" : "inputs", "type" : "uint32" }, { "name" : "string", "type" : "uint16" } ] },
48
49
{ "type" : "function", "name" : "slice", "inputs" : [ { "name" : "inputs", "type" : "uint32[2]" } ] },
68
69
String , _ = NewType ("string" , "" , nil )
69
70
Bool , _ = NewType ("bool" , "" , nil )
70
71
Bytes , _ = NewType ("bytes" , "" , nil )
72
+ Bytes32 , _ = NewType ("bytes32" , "" , nil )
71
73
Address , _ = NewType ("address" , "" , nil )
72
74
Uint64Arr , _ = NewType ("uint64[]" , "" , nil )
73
75
AddressArr , _ = NewType ("address[]" , "" , nil )
@@ -98,6 +100,7 @@ var methods = map[string]Method{
98
100
"uint64[]" : NewMethod ("uint64[]" , "uint64[]" , Function , "" , false , false , []Argument {{"inputs" , Uint64Arr , false }}, nil ),
99
101
"uint64[2]" : NewMethod ("uint64[2]" , "uint64[2]" , Function , "" , false , false , []Argument {{"inputs" , Uint64Arr2 , false }}, nil ),
100
102
"int8" : NewMethod ("int8" , "int8" , Function , "" , false , false , []Argument {{"inputs" , Int8 , false }}, nil ),
103
+ "bytes32" : NewMethod ("bytes32" , "bytes32" , Function , "" , false , false , []Argument {{"inputs" , Bytes32 , false }}, nil ),
101
104
"foo" : NewMethod ("foo" , "foo" , Function , "" , false , false , []Argument {{"inputs" , Uint32 , false }}, nil ),
102
105
"bar" : NewMethod ("bar" , "bar" , Function , "" , false , false , []Argument {{"inputs" , Uint32 , false }, {"string" , Uint16 , false }}, nil ),
103
106
"slice" : NewMethod ("slice" , "slice" , Function , "" , false , false , []Argument {{"inputs" , Uint32Arr2 , false }}, nil ),
0 commit comments