@depay/web3-wallets-evm 18.1.12 → 18.1.13

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