Skip to content

abigen: generate function startswith number #26972

@jsvisa

Description

@jsvisa

Rationale

Because of the limit of Golang lang, we can't generate code of this ABI:

[
  {
    "inputs": [],
    "name": "100pct",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  }
]

abigen will raise error:

// Fatal: Failed to generate ABI binding: 196:29: 'p' exponent requires hexadecimal mantissa (and 10 more errors)

Implementation

Do you have ideas regarding the implementation of this feature? // yes, we can add some rand chars for those non-[a-z] beginning function name
Are you willing to implement this feature? // yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions