From c125a488c80ddb923f73037868e2a224682a614b Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Sun, 14 Apr 2024 20:06:20 +0800 Subject: [PATCH] src/utils/webapi.js --- src/utils/webapi.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/webapi.js b/src/utils/webapi.js index 09ae8b6..ede9d58 100644 --- a/src/utils/webapi.js +++ b/src/utils/webapi.js @@ -35,10 +35,9 @@ const httpGet = async (url) => { const base58Alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; export const hexToBase58 = (hexString) => { - const bytes = hexString.match(/.{1,2}/g).map(byte => parseInt(byte, 16)); - + hexString.match(/.{1,2}/g).map(byte => parseInt(byte, 16)); let base58String = ''; - + // eslint-disable-next-line no-undef let num = BigInt('0x' + hexString); while (num > 0n) { const remainder = num % 58n;