Skip to content

use_contract! macro can't handle abi function overrides in IERC721  #258

@jrouaix

Description

@jrouaix

Hello folks,

It was such a relief when I understood that the rust eth librairie were already such matures, finding the use_contrat macro.
Then I now have an abi with 2 safeTransferFrom function overrides, as defined in https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol.

the name `safe_transfer_from` is defined multiple times
`safe_transfer_from` must be defined only once in the type namespace of this module

No surprise here as Rust is far more strict than other common languages. But did you find a way to escape this limitation ?

Right now, i'll just edit the abi and remove manually the second function definition, but I fear I'll have to call them both one day.

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