Skip to content
Permalink
Browse files

Write the Rinkeby account address to file too

  • Loading branch information...
enlight committed Oct 6, 2018
1 parent 8f6a4bd commit 9dbbd4b512e7efe4f77786c54f98331070c2a4b8
Showing with 6 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +1 −0 scripts/gen-eth-key.js
@@ -6,3 +6,8 @@ loom

# If you want to versioning build files (and it is recommended) you should remove or comment the line below
src/contracts

/rinkeby_private_key
/rinkeby_account
/rinkeby_mnemonic
/extdev_private_key
@@ -28,5 +28,6 @@ const wallet_hdpath = "m/44'/60'/0'/0/"

const wallet = hdwallet.derivePath(wallet_hdpath + '0').getWallet()

fs.writeFileSync(path.join(__dirname, `../${prefix}_account`), '0x' + wallet.getAddress().toString('hex'))
fs.writeFileSync(path.join(__dirname, `../${prefix}_mnemonic`), mnemonic)
fs.writeFileSync(path.join(__dirname, `../${prefix}_private_key`), wallet.getPrivateKey().toString('hex'))

0 comments on commit 9dbbd4b

Please sign in to comment.
You can’t perform that action at this time.