@@ -43,6 +43,7 @@ const jsondata = `
4343 { "type" : "function", "name" : "uint64[2]", "inputs" : [ { "name" : "inputs", "type" : "uint64[2]" } ] },
4444 { "type" : "function", "name" : "uint64[]", "inputs" : [ { "name" : "inputs", "type" : "uint64[]" } ] },
4545 { "type" : "function", "name" : "int8", "inputs" : [ { "name" : "inputs", "type" : "int8" } ] },
46+ { "type" : "function", "name" : "bytes32", "inputs" : [ { "name" : "inputs", "type" : "bytes32" } ] },
4647 { "type" : "function", "name" : "foo", "inputs" : [ { "name" : "inputs", "type" : "uint32" } ] },
4748 { "type" : "function", "name" : "bar", "inputs" : [ { "name" : "inputs", "type" : "uint32" }, { "name" : "string", "type" : "uint16" } ] },
4849 { "type" : "function", "name" : "slice", "inputs" : [ { "name" : "inputs", "type" : "uint32[2]" } ] },
6869 String , _ = NewType ("string" , "" , nil )
6970 Bool , _ = NewType ("bool" , "" , nil )
7071 Bytes , _ = NewType ("bytes" , "" , nil )
72+ Bytes32 , _ = NewType ("bytes32" , "" , nil )
7173 Address , _ = NewType ("address" , "" , nil )
7274 Uint64Arr , _ = NewType ("uint64[]" , "" , nil )
7375 AddressArr , _ = NewType ("address[]" , "" , nil )
@@ -98,6 +100,7 @@ var methods = map[string]Method{
98100 "uint64[]" : NewMethod ("uint64[]" , "uint64[]" , Function , "" , false , false , []Argument {{"inputs" , Uint64Arr , false }}, nil ),
99101 "uint64[2]" : NewMethod ("uint64[2]" , "uint64[2]" , Function , "" , false , false , []Argument {{"inputs" , Uint64Arr2 , false }}, nil ),
100102 "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 ),
101104 "foo" : NewMethod ("foo" , "foo" , Function , "" , false , false , []Argument {{"inputs" , Uint32 , false }}, nil ),
102105 "bar" : NewMethod ("bar" , "bar" , Function , "" , false , false , []Argument {{"inputs" , Uint32 , false }, {"string" , Uint16 , false }}, nil ),
103106 "slice" : NewMethod ("slice" , "slice" , Function , "" , false , false , []Argument {{"inputs" , Uint32Arr2 , false }}, nil ),
0 commit comments