@peng_kai/kit 0.1.8 → 0.1.10
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.
- package/package.json +1 -1
- package/utils/index.ts +2 -2
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -78,7 +78,7 @@ export function getScanBrowser(chain: string, hash: string, type: 'transaction'
|
|
|
78
78
|
'ETHEREUM': () => `https://etherscan.io/${evmType()}/${hash}`,
|
|
79
79
|
'BSC': () => `https://bscscan.com/${evmType()}/${hash}`,
|
|
80
80
|
'BINANCE': () => `https://bscscan.com/${evmType()}/${hash}`,
|
|
81
|
-
'BNB
|
|
81
|
+
'BNB CHAIN': () => `https://bscscan.com/${evmType()}/${hash}`,
|
|
82
82
|
'BASE': () => `https://basescan.org/${evmType()}/${hash}`,
|
|
83
83
|
'HECO': () => `https://hecoscan.io/#/${evmType}/${hash}`,
|
|
84
84
|
'POLYGON': () => `https://polygonscan.com/${evmType()}/${hash}`,
|
|
@@ -98,7 +98,7 @@ export function getScanBrowser(chain: string, hash: string, type: 'transaction'
|
|
|
98
98
|
},
|
|
99
99
|
'ZKSYNC': () => `https://explorer.zksync.io/${evmType()}/${hash}`,
|
|
100
100
|
'SOLANA': () => {
|
|
101
|
-
const _type = (<TypeMap>{ address: 'account' })[type] ?? type;
|
|
101
|
+
const _type = (<TypeMap>{ address: 'account', transaction: 'tx' })[type] ?? type;
|
|
102
102
|
return `https://solscan.io/${_type}/${hash}`;
|
|
103
103
|
},
|
|
104
104
|
}[_chain] ?? (() => '');
|