Browse Source

fix: default to empty string for mnemonic

Matt Condon 7 years ago
parent
commit
ac3808885a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      truffle-config.js

+ 1 - 1
truffle-config.js

@@ -8,7 +8,7 @@ const providerWithMnemonic = (mnemonic, rpcEndpoint) =>
   new HDWalletProvider(mnemonic, rpcEndpoint);
 
 const infuraProvider = network => providerWithMnemonic(
-  process.env.MNEMONIC,
+  process.env.MNEMONIC || '',
   `https://${network}.infura.io/${process.env.INFURA_API_KEY}`
 );