Getting this weird error while running deploy Script #561
-
I was trying to run the deploy script in order to programmatically verify the contract, PS D:\hh-fcc\ethers-simple-storage-hh-fcc> npx hardhat run .\scripts\deploy.js --network rinkeby
Compiled 1 Solidity file successfully
contract deployed to 0x50De1c32a9192d3e75C37DdcE98EeC71521735d5
Verifying Contract....
Nothing to compile
[Error: ENOENT: no such file or directory, open 'D:\hh-fcc\ethers-simple-storage-hh-fcc\artifacts\build-info\f6d72e584f9c6e176d0b340e8f9097a9.json'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'D:\\hh-fcc\\ethers-simple-storage-hh-fcc\\artifacts\\build-info\\f6d72e584f9c6e176d0b340e8f9097a9.json'
}
Deployed I don't know what is f6d72e584f9c6e176d0b340e8f9097a9. The file in the build info is 4bdb64d6f8eb1ee1f91afb5eb2dfd27f.json |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@shouryam-kumar show your deploy.js file |
Beta Was this translation helpful? Give feedback.
-
As @waleedcj said, deleting artifacts and cache directory and then recompiling the contract worked fine for me! |
Beta Was this translation helpful? Give feedback.
As @waleedcj said, deleting artifacts and cache directory and then recompiling the contract worked fine for me!