Skip to content

Commit

Permalink
wallet: fix txs stuck in processing (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Nov 7, 2024
1 parent b52532f commit 0948012
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ const walletStore = new Store({

const backend = new WalletBackend({
async onTransactionUpdate () {
walletStore.set('transactions_0x', backend.transactions)
walletStore.set(
'transactions_0x',
backend.transactions
// Don't persist new transactions that don't yet have a hash, as on
// an app restart these can't be consolidated with the ones returned
// by the API.
.filter(tx => tx.hash)
)
sendTransactionsToUI()
}
})
Expand Down

0 comments on commit 0948012

Please sign in to comment.