Skip to content

Commit

Permalink
fixed make lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-wjhan committed Jun 12, 2023
1 parent 39f2928 commit e762bb4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions accounts/abi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ import "fmt"
// ResolveNameConflict returns the next available name for a given thing.
// This helper can be used for lots of purposes:
//
// - In solidity function overloading is supported, this function can fix
// the name conflicts of overloaded functions.
// - In golang binding generation, the parameter(in function, event, error,
// and struct definition) name will be converted to camelcase style which
// may eventually lead to name conflicts.
// - In solidity function overloading is supported, this function can fix
// the name conflicts of overloaded functions.
// - In golang binding generation, the parameter(in function, event, error,
// and struct definition) name will be converted to camelcase style which
// may eventually lead to name conflicts.
//
// Name conflicts are mostly resolved by adding number suffix.
// e.g. if the abi contains Methods send, send1
// ResolveNameConflict would return send2 for input send.
//
// e.g. if the abi contains Methods send, send1
// ResolveNameConflict would return send2 for input send.
func ResolveNameConflict(rawName string, used func(string) bool) string {
name := rawName
ok := used(name)
Expand Down

0 comments on commit e762bb4

Please sign in to comment.