bitcoin-sv / sol2scrypt

Solidity to sCrypt Transplier
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

ERC721: Function names in contracts can be the same #155

Closed zhfnjust closed 2 years ago

zhfnjust commented 2 years ago

    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) external payable;

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    ///  except this function just sets data to "".
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable;
xhliu commented 2 years ago

Report error.

For this specific example, just rename to, e.g., safeTransferFrom1

zhfnjust commented 2 years ago

Cannot simply rename, both functions are external, and cannot call each other after rename