-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation of openzeppelin's ERC721 fails #136
Comments
|
Oh, thank you! I've missed that info) |
So how can this be solved. How can i fix this error? |
The code of |
i changed it to before: After: Still getting the same error. What am i doing wrong? |
@dhruvja Try removing the |
there are many instances where For example, there were some in |
@dhruvja Yes, you can see the changes here. https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3945/files |
## Motivation Compiling the `EVM2EVMOffRamp` token implementation for [TVM](https://developers.tron.network/v3.7/docs/virtual-machine-introduction) fails with the following error: ``` TypeError: Member "isContract" not unique after argument-dependent lookup in address. --> github/smartcontractkit/ccip/contracts/src/v0.8/ccip/offRamp/EVM2EVMOffRamp.sol:438:8: | 438 | !message.receiver.isContract() || !message.receiver.supportsInterface(type(IAny2EVMMessageReceiver).interfaceId) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` See tronprotocol/tronbox#136 for more details. ## Solution This change inlines the isContract() call to avoid ambiguity. Open Zeppelin solves this issue similarly (see https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3945/files).
I tried to compile NFT-contract based on ERC721 from openzeppelin, but it prints an error:
Here's a repo with minimal code to reproduce the error https://github.com/asinyagin/nft-test1
I tried to compile it with solc 0.8.11, solcjs 0.8.6, truffle 5.3.29 and it works correctly.
Thank you!
The text was updated successfully, but these errors were encountered: