Skip to content

ABIGen not generating function pointers for Go #17096

@jmc265

Description

@jmc265

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

  1. Take this contract: https://ethfiddle.com/a7bXVPT940
  2. Compile it abigen -sol tmp.sol -pkg foo -out f.go
  3. Get errors of the form ./f.go:179:99: undefined: function
  4. 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions