Closed warifp closed 1 year ago
Proof
Hi @warifp thanks for submitting the issue, we decided to reward you with 50usd & 50usd in SWTR tokens, I'll publish this in the https://github.com/SigmaGmbH/Bug-Bounty-1.0/tree/main/Hall%20Of%20Fame by the end of the day.
when I deploy (npm run deploy) there is an error like this:
npm run deploy
After I checked it turned out there was an error in the hardhat version, in the source code directory "scripts/deploy.js" is a
It should be
await perc20.waitForDeployment();
replaced with awaitperc20.deployed();
Conclusion
await perc20.waitForDeployment();
only for hardhat-toolbox@^3.0.0 and hardhat@^2.17.1perc20.deployed();
is with hardhat-toolbox@^1.0.2 and hardhat@^2.12.7So the correct script is