Skip to content

Commit 18b4008

Browse files
committed
Add skip of saving and verifying when deploying to hardhat
1 parent dc4dc01 commit 18b4008

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/deploy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ async function deploy() {
9898
// Perform deployment
9999
const contracts = await deployer.deploy();
100100

101+
// Skip save and verify when deploying to hardhat
102+
if (chain === 'hardhat') {
103+
return;
104+
}
105+
101106
// Compile deployment information for saving
102107
const deploymentData = {
103108
deployer: signer.address,

0 commit comments

Comments
 (0)