diff --git a/package.json b/package.json index a692048ff6..cbe8aa99ab 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "@polkadot/types-support": "^15.0.1", "@polkadot/util": "^13.2.3", "@polkadot/util-crypto": "^13.2.3", - "@subwallet/chain-list": "0.2.96-beta.8", + "@subwallet/chain-list": "0.2.97", "@subwallet/keyring": "^0.1.8-beta.0", "@subwallet/react-ui": "5.1.2-b79", "@subwallet/ui-keyring": "0.1.8-beta.0", diff --git a/packages/extension-base/package.json b/packages/extension-base/package.json index 5306a7bc49..a8168ff5aa 100644 --- a/packages/extension-base/package.json +++ b/packages/extension-base/package.json @@ -55,7 +55,7 @@ "@reduxjs/toolkit": "^1.9.1", "@sora-substrate/type-definitions": "^1.17.7", "@substrate/connect": "^0.8.9", - "@subwallet/chain-list": "0.2.96-beta.8", + "@subwallet/chain-list": "0.2.97", "@subwallet/extension-base": "^1.3.11-0", "@subwallet/extension-chains": "^1.3.11-0", "@subwallet/extension-dapp": "^1.3.11-0", diff --git a/packages/extension-base/src/services/balance-service/transfer/smart-contract.ts b/packages/extension-base/src/services/balance-service/transfer/smart-contract.ts index d0ea926e1b..c53d389292 100644 --- a/packages/extension-base/src/services/balance-service/transfer/smart-contract.ts +++ b/packages/extension-base/src/services/balance-service/transfer/smart-contract.ts @@ -90,7 +90,10 @@ export async function getERC20TransactionObject ( const transferData = generateTransferData(to, transferValue); const [gasLimit, priority] = await Promise.all([ // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access - erc20Contract.methods.transfer(to, transferValue).estimateGas({ from }) as number, + erc20Contract.methods.transfer(to, transferValue).estimateGas({ from }) + .catch(() => { + throw Error('Unable to estimate fee for this transaction. Try again or contact support at agent@subwallet.app'); + }) as number, calculateGasFeeParams(evmApi, networkKey) ]); diff --git a/packages/extension-base/src/services/chain-service/utils/patch.ts b/packages/extension-base/src/services/chain-service/utils/patch.ts index 2dc53844a5..9e8b6c3382 100644 --- a/packages/extension-base/src/services/chain-service/utils/patch.ts +++ b/packages/extension-base/src/services/chain-service/utils/patch.ts @@ -8,7 +8,7 @@ const branchName = process.env.BRANCH_NAME || 'subwallet-dev'; const fetchDomain = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev'; const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json'; -const ChainListVersion = '0.2.96'; // update this when build chainlist +const ChainListVersion = '0.2.97'; // update this when build chainlist // todo: move this interface to chainlist export interface PatchInfo { diff --git a/packages/extension-base/src/services/transaction-service/utils.ts b/packages/extension-base/src/services/transaction-service/utils.ts index 87247d9c02..a491b3a664 100644 --- a/packages/extension-base/src/services/transaction-service/utils.ts +++ b/packages/extension-base/src/services/transaction-service/utils.ts @@ -43,6 +43,10 @@ function getBlockExplorerAccountRoute (explorerLink: string) { return '#/accounts'; } + if (explorerLink.includes('laos.statescan.io')) { + return '#/accounts'; + } + if (explorerLink.includes('explorer.zkverify.io')) { return 'account'; } diff --git a/packages/extension-koni-ui/package.json b/packages/extension-koni-ui/package.json index d16e001b62..b184dd268b 100644 --- a/packages/extension-koni-ui/package.json +++ b/packages/extension-koni-ui/package.json @@ -34,7 +34,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.96-beta.8", + "@subwallet/chain-list": "0.2.97", "@subwallet/extension-base": "^1.3.11-0", "@subwallet/extension-chains": "^1.3.11-0", "@subwallet/extension-dapp": "^1.3.11-0", diff --git a/packages/extension-web-ui/package.json b/packages/extension-web-ui/package.json index 5c6a1963a5..a6e3fec431 100644 --- a/packages/extension-web-ui/package.json +++ b/packages/extension-web-ui/package.json @@ -35,7 +35,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.96-beta.8", + "@subwallet/chain-list": "0.2.97", "@subwallet/extension-base": "^1.3.11-0", "@subwallet/extension-chains": "^1.3.11-0", "@subwallet/extension-dapp": "^1.3.11-0", diff --git a/yarn.lock b/yarn.lock index 49ba54f637..9b4267700c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6439,15 +6439,15 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.96-beta.8": - version: 0.2.96 - resolution: "@subwallet/chain-list@npm:0.2.96-beta.8" +"@subwallet/chain-list@npm:0.2.97": + version: 0.2.97 + resolution: "@subwallet/chain-list@npm:0.2.97" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 ts-md5: ^1.3.1 - checksum: 45f78eb53c370e714eb014fb655ec85ccfff36cb79de68440c98ce6d53212aeb380351e4f77d4e7a5bdee8df33beff3164227ea24ffa0e0c54adf06e3f25deee + checksum: 3271231e2c5b435dd2f4c502da5af8b547a5ac8aafe7089d09c9966fd74b233eb4077d04e0c960857d5b5e2fbd29f178f08aec473e6ec23d19bd07b6642af432 languageName: node linkType: hard @@ -6490,7 +6490,7 @@ __metadata: "@reduxjs/toolkit": ^1.9.1 "@sora-substrate/type-definitions": ^1.17.7 "@substrate/connect": ^0.8.9 - "@subwallet/chain-list": 0.2.96-beta.8 + "@subwallet/chain-list": 0.2.97 "@subwallet/extension-base": ^1.3.11-0 "@subwallet/extension-chains": ^1.3.11-0 "@subwallet/extension-dapp": ^1.3.11-0 @@ -6629,7 +6629,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.96-beta.8 + "@subwallet/chain-list": 0.2.97 "@subwallet/extension-base": ^1.3.11-0 "@subwallet/extension-chains": ^1.3.11-0 "@subwallet/extension-dapp": ^1.3.11-0 @@ -6769,7 +6769,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.96-beta.8 + "@subwallet/chain-list": 0.2.97 "@subwallet/extension-base": ^1.3.11-0 "@subwallet/extension-chains": ^1.3.11-0 "@subwallet/extension-dapp": ^1.3.11-0