@depay/web3-wallets-evm 18.1.11 → 18.1.12

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.
@@ -2103,11 +2103,10 @@ class WorldApp {
2103
2103
  fetchTransaction(transaction, payload, attempt = 1) {
2104
2104
  return new Promise((resolve, reject)=>{
2105
2105
 
2106
- Promise.all([
2106
+ Promise.race([
2107
2107
  this.pollTransactionIdFromWorldchain(payload),
2108
2108
  this.pollEventForUserOp(transaction, payload),
2109
- ]).then((results)=>{
2110
- let transactionHash = results ? results.filter(Boolean)[0] : undefined;
2109
+ ]).then((transactionHash)=>{
2111
2110
  if(transactionHash) {
2112
2111
  transaction.id = transactionHash;
2113
2112
  transaction.url = Blockchains['worldchain'].explorerUrlFor({ transaction });
package/dist/esm/index.js CHANGED
@@ -2704,11 +2704,10 @@ class WorldApp {
2704
2704
  fetchTransaction(transaction, payload, attempt = 1) {
2705
2705
  return new Promise((resolve, reject)=>{
2706
2706
 
2707
- Promise.all([
2707
+ Promise.race([
2708
2708
  this.pollTransactionIdFromWorldchain(payload),
2709
2709
  this.pollEventForUserOp(transaction, payload),
2710
- ]).then((results)=>{
2711
- let transactionHash = results ? results.filter(Boolean)[0] : undefined;
2710
+ ]).then((transactionHash)=>{
2712
2711
  if(transactionHash) {
2713
2712
  transaction.id = transactionHash;
2714
2713
  transaction.url = Blockchains['worldchain'].explorerUrlFor({ transaction });
@@ -2107,11 +2107,10 @@
2107
2107
  fetchTransaction(transaction, payload, attempt = 1) {
2108
2108
  return new Promise((resolve, reject)=>{
2109
2109
 
2110
- Promise.all([
2110
+ Promise.race([
2111
2111
  this.pollTransactionIdFromWorldchain(payload),
2112
2112
  this.pollEventForUserOp(transaction, payload),
2113
- ]).then((results)=>{
2114
- let transactionHash = results ? results.filter(Boolean)[0] : undefined;
2113
+ ]).then((transactionHash)=>{
2115
2114
  if(transactionHash) {
2116
2115
  transaction.id = transactionHash;
2117
2116
  transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
package/dist/umd/index.js CHANGED
@@ -2707,11 +2707,10 @@
2707
2707
  fetchTransaction(transaction, payload, attempt = 1) {
2708
2708
  return new Promise((resolve, reject)=>{
2709
2709
 
2710
- Promise.all([
2710
+ Promise.race([
2711
2711
  this.pollTransactionIdFromWorldchain(payload),
2712
2712
  this.pollEventForUserOp(transaction, payload),
2713
- ]).then((results)=>{
2714
- let transactionHash = results ? results.filter(Boolean)[0] : undefined;
2713
+ ]).then((transactionHash)=>{
2715
2714
  if(transactionHash) {
2716
2715
  transaction.id = transactionHash;
2717
2716
  transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
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.11",
4
+ "version": "18.1.12",
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",