Skip to content
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

NFTStaking contract deployment using my own Nft Collection *query* #6

Closed
MRgreen1705 opened this issue Apr 10, 2022 · 0 comments
Closed

Comments

@MRgreen1705
Copy link

MRgreen1705 commented Apr 10, 2022

Hi, firstly thank you for your great contribution to the scene its been so helpful. I'm trying to deploy the NFT staking contract using my own ERC721 NFT contract thats already on chain. When trying to compile I'm getting the error shown below, I'd appreciate any advice on trying to resolve this. Also I've seen you mention in the comments I needed the approval function which my contract already has implemented. Thanks for your time and I appreciate all of your videos!
Kind regards

error shown below

from solidity:
DeclarationError: Identifier already declared.
--> contracts/NFTStaking.sol:6:1:
|
6 | import "https://github.com/MRgreen1705/StakingCats/PixelCatClub.sol");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note: The previous declaration is here:
--> @openzeppelin/contracts/utils/Context.sol:16:1:
|
16 | abstract contract Context {
| ^ (Relevant source part starts here and spans across multiple lines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant