Bitcoin-com / Wallet

MIT License
330 stars 233 forks source link

Sweeping a BCH paper wallet results in paying a fixed fee of 0.0001 BCH which is way too high. #523

Open lubokkanev opened 5 years ago

lubokkanev commented 5 years ago

Steps to reproduce:

  1. Open the Android wallet and go to 'Scan'.
  2. Point the camera to a private key of a BCH address.
  3. Choose a BCH wallet to which the funds should get transferred.
  4. Open the transaction info and check the paid transaction fee.

Expectation: ~1 sat/byte fee. Reality: A fixed 0.0001 BCH fee which results in about 40 sat/byte.

This happened 3 out of 3 times with varying amounts in the paper wallets.

lubokkanev commented 5 years ago

I think the issue comes from here:

https://github.com/Bitcoin-com/Wallet/blob/ea19d109e96baf39f6ba4f26046e477b14fd6026/src/js/controllers/paperWallet.js#L100

annamajorova0278 commented 5 years ago

535

annamajorova0278 commented 5 years ago

202

tranthanhgiang commented 5 years ago

111