diff --git a/nano.js b/nano.js index 11804cd..c509a5e 100644 --- a/nano.js +++ b/nano.js @@ -286,7 +286,7 @@ let nano = { headers: { 'content-type': 'application/json', 'authorization': this.rpc_key, - 'nano-app': `@nano/wallet-1.5.0`, + 'nano-app': `@nano/wallet-1.5.1`, } }; @@ -367,11 +367,10 @@ let nano = { return data break; } - console.log('Payment not found. Waiting 2 seconds before rechecking.'); - await new Promise(resolve => setTimeout(resolve, 2000)); // Wait for 2 seconds + console.log('Payment not found. Waiting 5 seconds before rechecking.'); + await new Promise(resolve => setTimeout(resolve, 5000)); // Wait for 2 seconds } catch (error) { - // console.error('Error fetching data:', error); - await new Promise(resolve => setTimeout(resolve, 2000)); // Wait for 2 seconds before retrying in case of error + await new Promise(resolve => setTimeout(resolve, 5000)); // Wait for 2 seconds before retrying in case of error } } }, diff --git a/package.json b/package.json index c403109..8ea7166 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nano/wallet", - "version": "1.5.0", + "version": "1.5.1", "description": "Nano Javascript Wallet", "main": "nano.js", "author": "nano2dev ",