mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: RBF tx memo porting
This commit is contained in:
parent
461a8e24f7
commit
443acb07e0
@ -63,15 +63,14 @@ export default class RBFCancel extends CPFP {
|
||||
}
|
||||
|
||||
onSuccessBroadcast() {
|
||||
// porting metadata, if any
|
||||
BlueApp.tx_metadata[this.state.newTxid] = BlueApp.tx_metadata[this.state.txid] || {};
|
||||
|
||||
// porting tx memo
|
||||
if (BlueApp.tx_metadata[this.state.txid]) {
|
||||
BlueApp.tx_metadata[this.state.newTxid] = BlueApp.tx_metadata[this.state.txid];
|
||||
if (BlueApp.tx_metadata[this.state.newTxid]['memo']) {
|
||||
BlueApp.tx_metadata[this.state.newTxid]['memo'] = 'Cancelled: ' + BlueApp.tx_metadata[this.state.newTxid]['memo'];
|
||||
}
|
||||
if (BlueApp.tx_metadata[this.state.newTxid]['memo']) {
|
||||
BlueApp.tx_metadata[this.state.newTxid]['memo'] = 'Cancelled: ' + BlueApp.tx_metadata[this.state.newTxid]['memo'];
|
||||
} else {
|
||||
// no old metadata
|
||||
BlueApp.tx_metadata[this.state.newTxid] = { memo: 'Cancelled transaction' };
|
||||
BlueApp.tx_metadata[this.state.newTxid]['memo'] = 'Cancelled transaction';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ export default class TransactionsStatus extends Component {
|
||||
}
|
||||
style={{ color: '#d0021b', fontSize: 15, fontWeight: '500', textAlign: 'center' }}
|
||||
>
|
||||
{loc.send.details.cancel}
|
||||
{"Cancel Transaction"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
</React.Fragment>
|
||||
|
Loading…
Reference in New Issue
Block a user