Browse Source

FIX: RBF tx memo porting

walletselecttest
Overtorment 5 years ago
parent
commit
443acb07e0
  1. 9
      screen/transactions/RBFCancel.js
  2. 2
      screen/transactions/transactionStatus.js

9
screen/transactions/RBFCancel.js

@ -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'];
}
} else {
// no old metadata
BlueApp.tx_metadata[this.state.newTxid] = { memo: 'Cancelled transaction' };
BlueApp.tx_metadata[this.state.newTxid]['memo'] = 'Cancelled transaction';
}
}

2
screen/transactions/transactionStatus.js

@ -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…
Cancel
Save