Skip to content

Commit

Permalink
Fix failed test for missing secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Forshtat authored and Dror Tirosh committed Feb 7, 2019
1 parent 363f747 commit 5ab09ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion truffle.js
@@ -1,8 +1,12 @@
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "digital unknown jealous mother legal hedgehog save glory december universe spread figure custom found six"

const secret_mnemonic_file = "./secret_mnemonic"
const fs=require('fs')
let secret_mnemonic = fs.readFileSync( "./secret_mnemonic", {encoding:'utf8'} )
let secret_mnemonic
if (fs.existsSync(secret_mnemonic_file)) {
secret_mnemonic = fs.readFileSync(secret_mnemonic_file , {encoding:'utf8'})
}
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
Expand Down

0 comments on commit 5ab09ce

Please sign in to comment.