Fix NFTExtension Interface Conformance Check in MetaverseNFT #104
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #35
Description
This pull request aims to fix the issue #35, where the
INFTExtension
interface conformance check was not effective due to the interface being empty. The following changes have been made:INFTExtension
interface to include a view function (extensionType()
).addExtension
function inMetaverseNFT
to check the updatedINFTExtension
interface.INFTExtension
interface.List of Commits and Relevant Files:
Update INFTExtension interface
contracts/factory/extensions/INFTExtension.sol
: AddextensionType()
view function.Modify the addExtension function in MetaverseNFT
contracts/factory/MetaverseNFT.sol
: Update theaddExtension
function to check the updatedINFTExtension
interface.Update extension contracts to implement the new extensionType() function
contracts/factory/extensions/ExampleExtensionA.sol
: ImplementextensionType()
function.contracts/factory/extensions/ExampleExtensionB.sol
: ImplementextensionType()
function.Add tests to check the correct implementation
test/metaverse-nft-test.js
: Add tests to ensure theaddExtension
function is checking the updatedINFTExtension
interface.Update the documentation to reflect the changes
README.md
: Update the documentation to explain the addition of theextensionType()
function in theINFTExtension
interface and its usage in theaddExtension
function.Let me know if you need any additional information or changes.
Status
This pull request was being autonomously generated by AutoPR, but it encountered an error.
Error:
Please open an issue to report this.
Progress Updates
✅ Planned pull request
✅ Wrote commit: Update INFTExtension interface
✅ Wrote commit: Modify the addExtension function in MetaverseNFT