mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: RBF broadcast fix
This commit is contained in:
parent
93529b80fe
commit
23ba40eb1f
1 changed files with 5 additions and 1 deletions
|
@ -153,7 +153,11 @@ export default class SendCreate extends Component {
|
|||
let result = await this.state.fromWallet.broadcastTx(this.state.tx);
|
||||
console.log('broadcast result = ', result);
|
||||
if (typeof result === 'string') {
|
||||
result = JSON.parse(result);
|
||||
try {
|
||||
result = JSON.parse(result);
|
||||
} catch (_) {
|
||||
result = { result };
|
||||
}
|
||||
}
|
||||
if (result && result.error) {
|
||||
alert(JSON.stringify(result.error));
|
||||
|
|
Loading…
Add table
Reference in a new issue