Timeline for A few simple question about using interfaces vs. standard contracts (IERC721 vs. ERC721)
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 5, 2022 at 18:00 | comment | added | Blockpain | Thanks for the response. So if interfaces are best for interacting with external contracts than I probably don't want to "inherit" an interface. Like if i said... "MyContract is IERC721"... that wouln't make much sense right? In this particular case i am looking for my contract to extend its functionality... so I should probably do... "MyContract is ERC721" ? Is that correct? I ask, becaseu i am doing this tutorial and in it they have us doing.... MyContract is IERC721. That seems odd to me to inherit an interface right? Or am i wrong and this is appropriate? | |
Aug 4, 2022 at 7:05 | history | answered | Ryan Sea | CC BY-SA 4.0 |