fix: default to empty string for mnemonic
This commit is contained in:
@ -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}`
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user