@@ -52,7 +52,7 @@ func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
5252 // contracts is the map of each individual contract requested binding
5353 contracts = make (map [string ]* tmplContract )
5454
55- // structs is the map of all reclared structs shared by passed contracts.
55+ // structs is the map of all redeclared structs shared by passed contracts.
5656 structs = make (map [string ]* tmplStruct )
5757
5858 // isLib is the map used to flag each encountered library as such
@@ -80,10 +80,10 @@ func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
8080 fallback * tmplMethod
8181 receive * tmplMethod
8282
83- // identifiers are used to detect duplicated identifier of function
84- // and event . For all calls, transacts and events, abigen will generate
83+ // identifiers are used to detect duplicated identifiers of functions
84+ // and events . For all calls, transacts and events, abigen will generate
8585 // corresponding bindings. However we have to ensure there is no
86- // identifier coliision in the bindings of these categories.
86+ // identifier collisions in the bindings of these categories.
8787 callIdentifiers = make (map [string ]bool )
8888 transactIdentifiers = make (map [string ]bool )
8989 eventIdentifiers = make (map [string ]bool )
@@ -246,7 +246,7 @@ var bindType = map[Lang]func(kind abi.Type, structs map[string]*tmplStruct) stri
246246 LangJava : bindTypeJava ,
247247}
248248
249- // bindBasicTypeGo converts basic solidity types(except array, slice and tuple) to Go one .
249+ // bindBasicTypeGo converts basic solidity types(except array, slice and tuple) to Go ones .
250250func bindBasicTypeGo (kind abi.Type ) string {
251251 switch kind .T {
252252 case abi .AddressTy :
@@ -286,7 +286,7 @@ func bindTypeGo(kind abi.Type, structs map[string]*tmplStruct) string {
286286 }
287287}
288288
289- // bindBasicTypeJava converts basic solidity types(except array, slice and tuple) to Java one .
289+ // bindBasicTypeJava converts basic solidity types(except array, slice and tuple) to Java ones .
290290func bindBasicTypeJava (kind abi.Type ) string {
291291 switch kind .T {
292292 case abi .AddressTy :
@@ -330,7 +330,7 @@ func bindBasicTypeJava(kind abi.Type) string {
330330}
331331
332332// pluralizeJavaType explicitly converts multidimensional types to predefined
333- // type in go side.
333+ // types in go side.
334334func pluralizeJavaType (typ string ) string {
335335 switch typ {
336336 case "boolean" :
@@ -369,7 +369,7 @@ var bindTopicType = map[Lang]func(kind abi.Type, structs map[string]*tmplStruct)
369369}
370370
371371// bindTopicTypeGo converts a Solidity topic type to a Go one. It is almost the same
372- // funcionality as for simple types, but dynamic types get converted to hashes.
372+ // functionality as for simple types, but dynamic types get converted to hashes.
373373func bindTopicTypeGo (kind abi.Type , structs map [string ]* tmplStruct ) string {
374374 bound := bindTypeGo (kind , structs )
375375
@@ -386,15 +386,15 @@ func bindTopicTypeGo(kind abi.Type, structs map[string]*tmplStruct) string {
386386}
387387
388388// bindTopicTypeJava converts a Solidity topic type to a Java one. It is almost the same
389- // funcionality as for simple types, but dynamic types get converted to hashes.
389+ // functionality as for simple types, but dynamic types get converted to hashes.
390390func bindTopicTypeJava (kind abi.Type , structs map [string ]* tmplStruct ) string {
391391 bound := bindTypeJava (kind , structs )
392392
393393 // todo(rjl493456442) according solidity documentation, indexed event
394394 // parameters that are not value types i.e. arrays and structs are not
395395 // stored directly but instead a keccak256-hash of an encoding is stored.
396396 //
397- // We only convert stringS and bytes to hash, still need to deal with
397+ // We only convert strings and bytes to hash, still need to deal with
398398 // array(both fixed-size and dynamic-size) and struct.
399399 if bound == "String" || bound == "byte[]" {
400400 bound = "Hash"
@@ -415,7 +415,7 @@ var bindStructType = map[Lang]func(kind abi.Type, structs map[string]*tmplStruct
415415func bindStructTypeGo (kind abi.Type , structs map [string ]* tmplStruct ) string {
416416 switch kind .T {
417417 case abi .TupleTy :
418- // We compose raw struct name and canonical parameter expression
418+ // We compose a raw struct name and a canonical parameter expression
419419 // together here. The reason is before solidity v0.5.11, kind.TupleRawName
420420 // is empty, so we use canonical parameter expression to distinguish
421421 // different struct definition. From the consideration of backward
@@ -454,7 +454,7 @@ func bindStructTypeGo(kind abi.Type, structs map[string]*tmplStruct) string {
454454func bindStructTypeJava (kind abi.Type , structs map [string ]* tmplStruct ) string {
455455 switch kind .T {
456456 case abi .TupleTy :
457- // We compose raw struct name and canonical parameter expression
457+ // We compose a raw struct name and a canonical parameter expression
458458 // together here. The reason is before solidity v0.5.11, kind.TupleRawName
459459 // is empty, so we use canonical parameter expression to distinguish
460460 // different struct definition. From the consideration of backward
@@ -486,7 +486,7 @@ func bindStructTypeJava(kind abi.Type, structs map[string]*tmplStruct) string {
486486}
487487
488488// namedType is a set of functions that transform language specific types to
489- // named versions that my be used inside method names.
489+ // named versions that may be used inside method names.
490490var namedType = map [Lang ]func (string , abi.Type ) string {
491491 LangGo : func (string , abi.Type ) string { panic ("this shouldn't be needed" ) },
492492 LangJava : namedTypeJava ,
@@ -528,7 +528,7 @@ func alias(aliases map[string]string, n string) string {
528528}
529529
530530// methodNormalizer is a name transformer that modifies Solidity method names to
531- // conform to target language naming concentions .
531+ // conform to target language naming conventions .
532532var methodNormalizer = map [Lang ]func (string ) string {
533533 LangGo : abi .ToCamelCase ,
534534 LangJava : decapitalise ,
0 commit comments