mirror of
https://github.com/hanzonet/explore.git
synced 2026-11-10 08:44:55 +00:00
5 lines
149 B
TypeScript
5 lines
149 B
TypeScript
export default function hexToAddress(hex: string) {
|
|
const shortenHex = hex.slice(0, 66);
|
|
return shortenHex.slice(0, 2) + shortenHex.slice(26);
|
|
}
|