Skip to content

Commit 6bccb79

Browse files
committed
fix: ensure .env is sourced in legacy build script, add default mnemonic
Signed-off-by: Tomás Migone <[email protected]>
1 parent 97accaa commit 6bccb79

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/token-distribution/hardhat.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ const networkConfigs: NetworkConfig[] = [
5656
},
5757
]
5858

59+
const DEFAULT_MNEMONIC = 'test test test test test test test test test test test junk'
5960
function getAccountMnemonic() {
60-
return process.env.MNEMONIC || ''
61+
return process.env.MNEMONIC || DEFAULT_MNEMONIC
6162
}
6263

6364
function getDefaultProviderURL(network: string) {

packages/token-distribution/scripts/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
source .env
4+
35
set -eo pipefail
46

57
if [ -z "${STUDIO_API_KEY}" ]; then

0 commit comments

Comments
 (0)