Error when minting Nft #2225
ucharles28
started this conversation in
General
Replies: 1 comment 9 replies
-
I was able to find a workaround, so I am dropping it here in case someone encounters the same error. After investigating the DevOpsTool.sol file I was able to narrow down what the issue was for (uint256 i = 0; i < entries.length; i++) {
Vm.DirEntry memory entry = entries[i];
if (
entry.path.contains(string.concat("/", vm.toString(chainId), "/")) && entry.path.contains(".json")
&& !entry.path.contains("dry-run")
) {
runProcessed = true;
.....
}
}
if (!runProcessed) {
revert("No deployment artifacts were found for specified chain");
} In the code above the So the simple solution was to change the forward slashes to backslash and viola! It worked! for (uint256 i = 0; i < entries.length; i++) {
Vm.DirEntry memory entry = entries[i];
if (
entry.path.contains(string.concat("\\", vm.toString(chainId), "\\")) && entry.path.contains(".json")
&& !entry.path.contains("dry-run")
) {
runProcessed = true;
.....
}
}
if (!runProcessed) {
revert("No deployment artifacts were found for specified chain");
} |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, please I need some help with an error I'm encountering. I'm trying to run the script to mint my nft in but I keep getting the following error
This is the script to mint the nft
I was able to deploy my contract successfully but I still don't understand why I'm getting this error. Every bit of help would be very much appreciated. I really appreciate any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions