Hello friends

I want to write a special contract and deploy it through truffle or hardhat
My problem:
I get a clone from the seadrop contract and execute the yarn init and yarn build commands. After that, I write a contract as follows, but during compilation, errors are returned stating that some files do not exist (one of the errors returned is Error: not found operator-filter-registry/DefaultOperatorFilterer.sol
) where is the problem How can I solve my problem?

// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import { ERC721SeaDrop } from "src/ERC721SeaDrop.sol";
contract Test is ERC721SeaDrop {
constructor(
string memory name,
string memory symbol
address[] memory allowedSeaDrop
) ERC721SeaDrop(name, symbol, allowedSeaDrop) {}
}

Oct 15, 2023, 7:19 AM
If you're copy-pasting a contract, you should know how to copy-paste the import dependencies as well... 🤦‍♂️https://github.com/ProjectOpenSea/operator-filter-registry
Oct 15, 2023, 9:54 AM
In the seadrop contract published in opensea's GitHub, all used external libraries are stored as submodules. 😑
Oct 15, 2023, 1:29 PM
Prob learn the basics, not knowing how to fork a contract, don't sound well in your development goals...
Oct 15, 2023, 1:32 PM
Please teach me how to solve my current problem
Oct 15, 2023, 1:33 PM
Experience cost time, and time cost money. If you don't want to spend any, I suggest to invest either your time or money in some who can.
Oct 15, 2023, 1:36 PM
Learn solidity
Oct 15, 2023, 1:39 PM
You don't want to teach anything, please don't talk philosophy😐😂
Oct 15, 2023, 1:49 PM
You better stop disrespecting other developers here, we aren't here to spoonfed you
There are plenty of learning resources
Oct 15, 2023, 1:50 PM
Philosophy and advice are the only free assets I can give you, the rest is up to you.
Oct 15, 2023, 1:51 PM

© 2024 Draquery.com All rights reserved.