Skip to content

abigen - Failed to generate ABI binding: duplicated identifier "totalSupply"(normalized "TotalSupply"), use --alias for renaming #21846

@huahuayu

Description

@huahuayu

System information

geth: 1.9.24-unstable
solc: 0.4.17+commit.bdeb9e52.Linux.g++
abigen: abigen version 1.9.24-unstable

Expected behavior

get TetherToken.sol from https://etherscan.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7#code

generate go code by abigen successfully

Actual behaviour

abigen failed

$ abigen -sol TetherToken.sol -pkg usdt -out usdt.go
Fatal: Failed to generate ABI binding: duplicated identifier "totalSupply"(normalized "TotalSupply"), use --alias for renaming

Metadata

Metadata

Assignees

No one assigned

    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