@depay/web3-wallets-evm 17.4.7 → 17.4.8

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.
@@ -1726,6 +1726,8 @@ class WorldApp {
1726
1726
  console.log('before transaction.succeeded', transaction.succeeded);
1727
1727
  if (transaction.succeeded) { transaction.succeeded(transaction); }
1728
1728
  resolve(transaction);
1729
+ } else {
1730
+ if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
1729
1731
  }
1730
1732
  }).catch(reject);
1731
1733
  }).catch(reject);
package/dist/esm/index.js CHANGED
@@ -2325,6 +2325,8 @@ class WorldApp {
2325
2325
  console.log('before transaction.succeeded', transaction.succeeded);
2326
2326
  if (transaction.succeeded) { transaction.succeeded(transaction); }
2327
2327
  resolve(transaction);
2328
+ } else {
2329
+ if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
2328
2330
  }
2329
2331
  }).catch(reject);
2330
2332
  }).catch(reject);
@@ -1729,6 +1729,8 @@
1729
1729
  console.log('before transaction.succeeded', transaction.succeeded);
1730
1730
  if (transaction.succeeded) { transaction.succeeded(transaction); }
1731
1731
  resolve(transaction);
1732
+ } else {
1733
+ if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
1732
1734
  }
1733
1735
  }).catch(reject);
1734
1736
  }).catch(reject);
package/dist/umd/index.js CHANGED
@@ -2327,6 +2327,8 @@
2327
2327
  console.log('before transaction.succeeded', transaction.succeeded);
2328
2328
  if (transaction.succeeded) { transaction.succeeded(transaction); }
2329
2329
  resolve(transaction);
2330
+ } else {
2331
+ if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
2330
2332
  }
2331
2333
  }).catch(reject);
2332
2334
  }).catch(reject);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "17.4.7",
4
+ "version": "17.4.8",
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",