@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/index.ts +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
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 Chain': () => `https://bscscan.com/${evmType()}/${hash}`,
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] ?? (() => '');