mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-06 03:38:24 +00:00
Important: fix to make failed hodl invoices clear from pending, fix contacts (#96)
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "minibits_wallet",
|
||||
"version": "0.1.8-beta.59",
|
||||
"version": "0.1.8-beta.60",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android:clean": "cd android && ./gradlew clean",
|
||||
|
||||
@@ -343,7 +343,7 @@ export const PrivateContacts = observer(function (props: {
|
||||
value={newContactName}
|
||||
autoCapitalize="none"
|
||||
keyboardType="default"
|
||||
maxLength={60}
|
||||
maxLength={64}
|
||||
selectTextOnFocus={true}
|
||||
style={[
|
||||
$contactInput,
|
||||
|
||||
@@ -451,7 +451,7 @@ const _handleSpentByMintTask = async function (
|
||||
|
||||
log.trace('[_handleSpentByMintTask]', 'Remaining pendingByMintSecrets', remainingSecrets)
|
||||
|
||||
if(pendingCount > 0 && remainingSecrets.length > 0) {
|
||||
if(remainingSecrets.length > 0) {
|
||||
|
||||
log.trace('[_handleSpentByMintTask]', 'Starting sweep of pendingByMintSecrets back to spendable wallet')
|
||||
|
||||
@@ -462,9 +462,9 @@ const _handleSpentByMintTask = async function (
|
||||
|
||||
// only move if it is from current mint
|
||||
if(proofToMove && proofToMove.mintUrl === mintUrl) {
|
||||
const stillPendingByMint = pendingProofs.find(p => p.secret === secret)
|
||||
const isStillPendingByMint = pendingProofs.some(p => p.secret === secret)
|
||||
|
||||
if(!stillPendingByMint) {
|
||||
if(!isStillPendingByMint) {
|
||||
// move to spendable if it is not pending by mint anymore
|
||||
proofsStore.removeFromPendingByMint(proofToMove as Proof)
|
||||
movedProofs.push(proofToMove)
|
||||
@@ -476,7 +476,7 @@ const _handleSpentByMintTask = async function (
|
||||
movedToSpendableAmount = CashuUtils.getProofsAmount(movedProofs as Proof[])
|
||||
|
||||
if(movedProofs.length > 0) {
|
||||
log.trace('[_handleSpentByMintTask]', 'Moving proofs from pending to spendable', movedProofs.length)
|
||||
log.debug('[_handleSpentByMintTask]', 'Moving proofs from pendingByMint to spendable', movedProofs.length)
|
||||
|
||||
// Update related transactions as reverted
|
||||
let relatedTransactionIds: number[] = []
|
||||
|
||||
Reference in New Issue
Block a user