ethers.js: Error: Tx mismatch

Is there a reason why .send() is not an available method for HD Wallets?

Edit: I’m trying to use .sendTransaction() now but seem to be running into txHash mismatch error… Is there a suggested way for transfering eth from an HD?

Edit2: Using ganache-cli for local eth client.

await mainWallet.sendTransaction({
        to: wallet.address,
        amount: amount
      });

error: Error: Transaction hash mismatch from Provider.sendTransaction. (expectedHash="0xf6878651c3eefc608e4852a4fdcf28dd9319f950b78dfb0dcf6d726ab2dd153b", returnedHash="0xf9b4f394391c0f14b22337a0d496bc36d2c54f7fce2f061c4e98e3710afbe355")

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

For anyone else who comes across this:

I experienced the same issue with ganache-cli@6.2.1 paired with ethers@4.0.12. Downgrading to ganache-cli@6.1.8 fixed the issue.

(I also experienced a sporadic “incorrect nonce” type error, where the transaction nonce was different from the account’s nonce, which I’m currently unable to reproduce. This problem also seems to have been resolved by downgrading to ganache-cli@6.1.8)

Well, that was fun… hahaha.

Thanks for hanging around for so long, really appreciate it!