-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Closed
Description
System information
OS & Version: OSX
Commit hash : e916f97
Expected behaviour
ABIGen will generate a function pointer arg for the generated Go.
Actual behaviour
The generated Go file is not syntactically correct for the function argument.
Steps to reproduce the behaviour
- Take this contract: https://ethfiddle.com/a7bXVPT940
- Compile it
abigen -sol tmp.sol -pkg foo -out f.go - Get errors of the form
./f.go:179:99: undefined: function - Observe incorrect Go sytax in
f.go:
func (_FunctionPointerTest *FunctionPointerTestTransactor) Test(opts *bind.TransactOpts, callback function) (*types.Transaction, error) {
return _FunctionPointerTest.contract.Transact(opts, "test", callback)
}
Metadata
Metadata
Assignees
Labels
No labels