-
Notifications
You must be signed in to change notification settings - Fork 74
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
TypeError Function has override specified but does not override anything #7
Comments
I also can't compile, tried different versions, @zeuslawyer please help |
Can you share your smart contract to see the imports? I think it is not recognizing the parent smart contract ERC721Enumerable. |
I see a detail, can be that way |
@sheva323 I am using code from this branch - https://github.com/zeuslawyer/chainlink-dynamic-nft-alchemy/blob/price-feeds/contracts/Bull&Bear.sol |
Ohh I see, the additional parameter in one little solution, it takes off some errors, but there still the error appearing. Im trying to test here. |
Would be cool if you can fix it, I would continue lesson;) |
it's actually strange, it shouldn't have problems. |
did it, it helped to compile, thanks 🙏 @zeuslawyer would be good to add this fix to repo, and update Alchemy course, so new people won't face problems |
TypeError: Function has override specified but does not override anything. --> contracts/BullBear.sol:69:24: | 69 | ) internal virtual override
old
// The following functions are overrides required by Solidity. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); }
new
`
// The following functions are overrides required by Solidity.
function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize)
internal
override(ERC721, ERC721Enumerable)
{
super._beforeTokenTransfer(from, to, tokenId, batchSize);
}
`
The text was updated successfully, but these errors were encountered: