From 604ce21bdf85ee43226f77dc83227d9eb0dd7fc9 Mon Sep 17 00:00:00 2001 From: utf Date: Sun, 31 Dec 2023 17:47:49 +0100 Subject: [PATCH] fix(client): make Client.decodeAddress() return a BigInt, not Long --- src/Client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.js b/src/Client.js index 833d39c..08a0f8c 100644 --- a/src/Client.js +++ b/src/Client.js @@ -10,7 +10,6 @@ import { KeepAlive } from './Protocol.js' import { EventEmitter } from 'events' -import Long from 'long' const WebSocket = (typeof window === 'undefined' ? import('ws'): window.WebSocket) @@ -21,7 +20,7 @@ export class Client extends EventEmitter { } static decodeAddress(address) { - return Long.fromString(BigInt('0x' + address.replace(/:/g, '')).toString(10)) + return BigInt('0x' + address.replace(/:/g, '')).toString(10) } #gateway