-
I am on Advanced Foundry, section 2, Lesson 8: I deployed the contract[this] on sepolia testnet and went ahead to mint the NFT but was returned with this error:
while contract is already deployed and it can also be seen in broadcast Here is the code: Code |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hello @vabs10, You deployed to the |
Beta Was this translation helpful? Give feedback.
-
we would normally use the below command to deploy our NFT to the deploy-sepolia:
forge script script/DeployBasicNFT.s.sol:DeployBasicNFT --rpc-url $(SEPOLIA_RPC_URL) --private-key $(SEPOLIA_PRIVATE_KEY) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvv |
Beta Was this translation helpful? Give feedback.
-
If you don't know how to deploy to the |
Beta Was this translation helpful? Give feedback.
-
Open the |
Beta Was this translation helpful? Give feedback.
Hi @EngrPips you are not going to believe what solved it for me
In the DevOpsTools.sol file this code was merging the
string.concat('/', vm.toString(chainId), "/")
part andentry.path.contains(".json")
codeI took
entry.path.contains(".json")
part on the next line and it workedThanks for helping