Open dkent600 opened 6 years ago
calling getAddress()
on the hd provider returns the wrong address.
Turns out not all mnemonics are created the same, which is surprising to me. I went to https://iancoleman.io/bip39 and created a new mnemonic and it works fine.
Should this be documented somehow? Or maybe it is and I missed something? Or is this a bug?
Same problem here. I tried to use the mnemonic generated from ganache cli. Does not work. It would also be helpful if the hd provider would log out the address that it expects to have some funds. I have been debugging this in the dark for a while.
same here, even when using https://iancoleman.io/bip39 to create a mnemonic....
Think I've uncovered what's happening (at least for my case of this problem),
m/44'/1'/0'/0
"Testnet (ETH)"truffle migrate --network ropsten --dry-run
, and console logged the HDWalletProvider getAddress()
, I notice it's different than the one I saw in step 1.m/44'/60'/0'/0
"Default (ETH)", I can now see that address zero matches the one I saw in step 3.truffle-hdwallet-provider
uses the HD path m/44'/60'/0'/0
even though we're migrating on a test net.
always use Derived addresses at m/44'/60'/0'/0
when opening the HD wallet in MyCrypto or any other wallet, since that is the HD path which is used/opened by truffle-hdwallet-provider
.
Make it possible to configure which HD path truffle-hdwallet-provider
uses/opens.
I am trying to run
truffle migrate
against Kovan with the truffle.js configuration shown below. However the migration fails as follows:This in spite of the fact that the account identified by the mnemonic has plenty of KETH in it.
If it matters, the mnemonic was created by Parity.
Doesn't matter what underlying provider I use, Infura or Parity, I get the same result.
I am using truffle-hdwallet-provider@0.0.5.
Any ideas what could be going wrong here?
Thanks
Truffle.js: