@depay/web3-wallets-evm 18.1.8 → 18.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,6 +169,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
169
169
  transaction.nonce = sentTransaction.nonce || transactionCount;
170
170
  transaction.url = Blockchains.findByName(transaction.blockchain).explorerUrlFor({ transaction });
171
171
  if (transaction.sent) transaction.sent(transaction);
172
+
172
173
  retrieveConfirmedTransaction$2(sentTransaction).then(() => {
173
174
  transaction._succeeded = true;
174
175
  if (transaction.succeeded) transaction.succeeded(transaction);
@@ -183,7 +184,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
183
184
  if (transaction.succeeded) transaction.succeeded(transaction);
184
185
  } else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
185
186
  transaction._failed = true;
186
- if(transaction.failed) transaction.failed(transaction, error);
187
+ if(transaction.failed) transaction.failed(transaction, error);
187
188
  }
188
189
  } else {
189
190
  transaction._failed = true;
@@ -198,9 +199,11 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
198
199
  };
199
200
 
200
201
  const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
202
+ console.log('retrieveConfirmedTransaction', sentTransaction);
201
203
  return new Promise((resolve, reject)=>{
202
204
  try {
203
205
  sentTransaction.wait(1).then(resolve).catch((error)=>{
206
+ console.log('error', error);
204
207
  if(
205
208
  (error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
206
209
  (error && error.toString().match('undefined'))
@@ -215,6 +218,7 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
215
218
  }
216
219
  });
217
220
  } catch(error) {
221
+ console.log('ERROR', error);
218
222
  if(
219
223
  (error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
220
224
  (error && error.toString().match('undefined'))
package/dist/esm/index.js CHANGED
@@ -442,6 +442,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
442
442
  transaction.nonce = sentTransaction.nonce || transactionCount;
443
443
  transaction.url = Blockchains.findByName(transaction.blockchain).explorerUrlFor({ transaction });
444
444
  if (transaction.sent) transaction.sent(transaction);
445
+
445
446
  retrieveConfirmedTransaction$2(sentTransaction).then(() => {
446
447
  transaction._succeeded = true;
447
448
  if (transaction.succeeded) transaction.succeeded(transaction);
@@ -456,7 +457,7 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
456
457
  if (transaction.succeeded) transaction.succeeded(transaction);
457
458
  } else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
458
459
  transaction._failed = true;
459
- if(transaction.failed) transaction.failed(transaction, error);
460
+ if(transaction.failed) transaction.failed(transaction, error);
460
461
  }
461
462
  } else {
462
463
  transaction._failed = true;
@@ -471,9 +472,11 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
471
472
  };
472
473
 
473
474
  const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
475
+ console.log('retrieveConfirmedTransaction', sentTransaction);
474
476
  return new Promise((resolve, reject)=>{
475
477
  try {
476
478
  sentTransaction.wait(1).then(resolve).catch((error)=>{
479
+ console.log('error', error);
477
480
  if(
478
481
  (error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
479
482
  (error && error.toString().match('undefined'))
@@ -488,6 +491,7 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
488
491
  }
489
492
  });
490
493
  } catch(error) {
494
+ console.log('ERROR', error);
491
495
  if(
492
496
  (error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
493
497
  (error && error.toString().match('undefined'))
@@ -173,6 +173,7 @@
173
173
  transaction.nonce = sentTransaction.nonce || transactionCount;
174
174
  transaction.url = Blockchains__default['default'].findByName(transaction.blockchain).explorerUrlFor({ transaction });
175
175
  if (transaction.sent) transaction.sent(transaction);
176
+
176
177
  retrieveConfirmedTransaction$2(sentTransaction).then(() => {
177
178
  transaction._succeeded = true;
178
179
  if (transaction.succeeded) transaction.succeeded(transaction);
@@ -187,7 +188,7 @@
187
188
  if (transaction.succeeded) transaction.succeeded(transaction);
188
189
  } else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
189
190
  transaction._failed = true;
190
- if(transaction.failed) transaction.failed(transaction, error);
191
+ if(transaction.failed) transaction.failed(transaction, error);
191
192
  }
192
193
  } else {
193
194
  transaction._failed = true;
@@ -202,9 +203,11 @@
202
203
  };
203
204
 
204
205
  const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
206
+ console.log('retrieveConfirmedTransaction', sentTransaction);
205
207
  return new Promise((resolve, reject)=>{
206
208
  try {
207
209
  sentTransaction.wait(1).then(resolve).catch((error)=>{
210
+ console.log('error', error);
208
211
  if(
209
212
  (error && _optionalChain$p([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
210
213
  (error && error.toString().match('undefined'))
@@ -219,6 +222,7 @@
219
222
  }
220
223
  });
221
224
  } catch(error) {
225
+ console.log('ERROR', error);
222
226
  if(
223
227
  (error && _optionalChain$p([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
224
228
  (error && error.toString().match('undefined'))
package/dist/umd/index.js CHANGED
@@ -445,6 +445,7 @@
445
445
  transaction.nonce = sentTransaction.nonce || transactionCount;
446
446
  transaction.url = Blockchains__default['default'].findByName(transaction.blockchain).explorerUrlFor({ transaction });
447
447
  if (transaction.sent) transaction.sent(transaction);
448
+
448
449
  retrieveConfirmedTransaction$2(sentTransaction).then(() => {
449
450
  transaction._succeeded = true;
450
451
  if (transaction.succeeded) transaction.succeeded(transaction);
@@ -459,7 +460,7 @@
459
460
  if (transaction.succeeded) transaction.succeeded(transaction);
460
461
  } else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
461
462
  transaction._failed = true;
462
- if(transaction.failed) transaction.failed(transaction, error);
463
+ if(transaction.failed) transaction.failed(transaction, error);
463
464
  }
464
465
  } else {
465
466
  transaction._failed = true;
@@ -474,9 +475,11 @@
474
475
  };
475
476
 
476
477
  const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
478
+ console.log('retrieveConfirmedTransaction', sentTransaction);
477
479
  return new Promise((resolve, reject)=>{
478
480
  try {
479
481
  sentTransaction.wait(1).then(resolve).catch((error)=>{
482
+ console.log('error', error);
480
483
  if(
481
484
  (error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
482
485
  (error && error.toString().match('undefined'))
@@ -491,6 +494,7 @@
491
494
  }
492
495
  });
493
496
  } catch(error) {
497
+ console.log('ERROR', error);
494
498
  if(
495
499
  (error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
496
500
  (error && error.toString().match('undefined'))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "18.1.8",
4
+ "version": "18.1.9",
5
5
  "description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
6
6
  "main": "dist/umd/index.evm.js",
7
7
  "module": "dist/esm/index.evm.js",