Skip to content

Commit eb70c09

Browse files
committed
fix: Provide default value for DEPLOYER_PRIVATE_KEY in configuration
1 parent f05fef5 commit eb70c09

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

hardhat.config.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,8 @@ const config: HardhatUserConfig = {
176176
process.env.RPC_URL || // Defined in Github Actions environments
177177
'https://arbitrum.gateway.tenderly.co',
178178
accounts: [
179-
(() => {
180-
if (!process.env.DEPLOYER_PRIVATE_KEY) {
181-
throw new Error(
182-
'Missing DEPLOYER_PRIVATE_KEY environment variable for deployment.',
183-
);
184-
}
185-
return process.env.DEPLOYER_PRIVATE_KEY;
186-
})(),
179+
process.env.DEPLOYER_PRIVATE_KEY ||
180+
'0x0000000000000000000000000000000000000000000000000000000000000000',
187181
],
188182
...arbitrumBaseConfig,
189183
},

0 commit comments

Comments
 (0)