Skip to content

Commit

Permalink
v17.4.8: add failed callback to World App
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Oct 8, 2024
1 parent 08e13bf commit 27b73b9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,8 @@ class WorldApp {
console.log('before transaction.succeeded', transaction.succeeded);
if (transaction.succeeded) { transaction.succeeded(transaction); }
resolve(transaction);
} else {
if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
}
}).catch(reject);
}).catch(reject);
Expand Down
2 changes: 2 additions & 0 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,8 @@
console.log('before transaction.succeeded', transaction.succeeded);
if (transaction.succeeded) { transaction.succeeded(transaction); }
resolve(transaction);
} else {
if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
}
}).catch(reject);
}).catch(reject);
Expand Down
2 changes: 2 additions & 0 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-evm",
"moduleName": "Web3Wallets",
"version": "17.4.7",
"version": "17.4.8",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets",
"moduleName": "Web3Wallets",
"version": "17.4.7",
"version": "17.4.8",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-solana",
"moduleName": "Web3Wallets",
"version": "17.4.7",
"version": "17.4.8",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
2 changes: 2 additions & 0 deletions src/wallets/WorldApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export default class WorldApp {
console.log('before transaction.succeeded', transaction.succeeded)
if (transaction.succeeded) { transaction.succeeded(transaction) }
resolve(transaction)
} else {
if (transaction.failed) { transaction.failed(transaction, 'Transaction failed') }
}
}).catch(reject)
}).catch(reject)
Expand Down

0 comments on commit 27b73b9

Please sign in to comment.