You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: