mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
FIX: Fix transaction fee for BIP70 payments
This commit is contained in:
parent
6dd83afd09
commit
445d85e6c4
2 changed files with 11 additions and 4 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -11590,9 +11590,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-native-tooltip": {
|
"react-native-tooltip": {
|
||||||
"version": "5.2.0",
|
"version": "git+https://github.com/BlueWallet/react-native-tooltip.git#72329a1a687ce9938eca11f0026f1a58c326db33",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-tooltip/-/react-native-tooltip-5.2.0.tgz",
|
"from": "git+https://github.com/BlueWallet/react-native-tooltip.git"
|
||||||
"integrity": "sha512-3mbPGd/VDfb3dUZmdmgg4eE8idJU4OyYM9ItGifnofz+Cz50Aua+sVGo2Ecc7zHV0S+kM0mOyLL758hhTz2gDw=="
|
|
||||||
},
|
},
|
||||||
"react-native-vector-icons": {
|
"react-native-vector-icons": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.0",
|
||||||
|
|
|
@ -283,11 +283,19 @@ export default class SendDetails extends Component {
|
||||||
Keyboard.dismiss();
|
Keyboard.dismiss();
|
||||||
BitcoinBIP70TransactionDecode.decode(text)
|
BitcoinBIP70TransactionDecode.decode(text)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
let networkTransactionFees = this.state.networkTransactionFees;
|
||||||
|
if (response.fee > networkTransactionFees.fastestFee) {
|
||||||
|
networkTransactionFees.fastestFee = response.fee;
|
||||||
|
} else {
|
||||||
|
networkTransactionFees.halfHourFee = response.fee;
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
address: response.address,
|
address: response.address,
|
||||||
amount: loc.formatBalanceWithoutSuffix(response.amount, BitcoinUnit.BTC, false),
|
amount: loc.formatBalanceWithoutSuffix(response.amount, BitcoinUnit.BTC, false),
|
||||||
memo: response.memo,
|
memo: response.memo,
|
||||||
fee: response.fee,
|
networkTransactionFees,
|
||||||
|
fee: networkTransactionFees.fastestFee.toFixed(0),
|
||||||
|
feeSliderValue: networkTransactionFees.fastestFee.toFixed(0),
|
||||||
bip70TransactionExpiration: response.expires,
|
bip70TransactionExpiration: response.expires,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue