Web3 DAO | Ethereum Foundation Logo

Abigen fails with complex type as argument

Organization

Ethereum Foundation

Deadline

N/A

Status

LIVE


INSTRUCTIONS

System information

Geth version: v1.10.16 OS & Version: OSX Commit hash: -

Expected behaviour

abigen produces a go wrapper

Actual behaviour

abigen errors out

Steps to reproduce the behaviour

Save this as Example.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;

library Example {
  enum Field {
    F1
  }

  function example(Field x) public view {}
}

Run:

solc-select use 0.8.6
./abigen --pkg example --sol Example.sol

Backtrace

Fatal: Failed to generate ABI binding: unsupported arg type: Example.Field