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