Skip to content

Commit

Permalink
Useful comment on aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
zomglings committed Feb 17, 2024
1 parent 5b6e632 commit 434ec0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions evm/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var ErrParameterUnnamed error = errors.New("parameter is unnamed")
// 3. bytecode: The bytes representing the contract's bytecode. If this is provided, a "deploy" method
// will be generated. If it is not provided, no such method will be generated.
// 4. packageName: If this is provided, the generated code will contain a package declaration of this name.
// 5. aliases: This is a mapping of aliases for identifiers from an ABI. Necessary because Go bindings have trouble with overloaded methods in an ABI.
func GenerateTypes(structName string, abi []byte, bytecode []byte, packageName string, aliases map[string]string) (string, error) {
return bind.Bind([]string{structName}, []string{string(abi)}, []string{string(bytecode)}, []map[string]string{}, packageName, bind.LangGo, map[string]string{}, aliases)
}
Expand Down

0 comments on commit 434ec0a

Please sign in to comment.