@@ -247,49 +247,49 @@ func TestAbi_HumanReadable(t *testing.T) {
247247 Inputs : MustNewType ("tuple(string symbol, string name)" ),
248248 },
249249 Methods : map [string ]* Method {
250- "transferFrom" : & Method {
250+ "transferFrom" : {
251251 Name : "transferFrom" ,
252252 Inputs : MustNewType ("tuple(address from, address to, uint256 value)" ),
253253 Outputs : MustNewType ("tuple()" ),
254254 },
255- "balanceOf" : & Method {
255+ "balanceOf" : {
256256 Name : "balanceOf" ,
257257 Inputs : MustNewType ("tuple(address owner)" ),
258258 Outputs : MustNewType ("tuple(uint256 balance)" ),
259259 },
260- "balanceOf0" : & Method {
260+ "balanceOf0" : {
261261 Name : "balanceOf" ,
262262 Inputs : MustNewType ("tuple()" ),
263263 Outputs : MustNewType ("tuple()" ),
264264 },
265- "addPerson" : & Method {
265+ "addPerson" : {
266266 Name : "addPerson" ,
267267 Inputs : MustNewType ("tuple(tuple(string name, uint16 age) person)" ),
268268 Outputs : MustNewType ("tuple()" ),
269269 },
270- "addPeople" : & Method {
270+ "addPeople" : {
271271 Name : "addPeople" ,
272272 Inputs : MustNewType ("tuple(tuple(string name, uint16 age)[] person)" ),
273273 Outputs : MustNewType ("tuple()" ),
274274 },
275- "getPerson" : & Method {
275+ "getPerson" : {
276276 Name : "getPerson" ,
277277 Inputs : MustNewType ("tuple(uint256 id)" ),
278278 Outputs : MustNewType ("tuple(tuple(string name, uint16 age))" ),
279279 },
280280 },
281281 Events : map [string ]* Event {
282- "Transfer" : & Event {
282+ "Transfer" : {
283283 Name : "Transfer" ,
284284 Inputs : MustNewType ("tuple(address indexed from, address indexed to, address value)" ),
285285 },
286- "PersonAdded" : & Event {
286+ "PersonAdded" : {
287287 Name : "PersonAdded" ,
288288 Inputs : MustNewType ("tuple(uint256 indexed id, tuple(string name, uint16 age) person)" ),
289289 },
290290 },
291291 Errors : map [string ]* Error {
292- "InsufficientBalance" : & Error {
292+ "InsufficientBalance" : {
293293 Name : "InsufficientBalance" ,
294294 Inputs : MustNewType ("tuple(address owner, uint256 balance)" ),
295295 },
0 commit comments