fix(client): make Client.decodeAddress() return a BigInt, not Long

This commit is contained in:
utf
2023-12-31 17:47:49 +01:00
parent 8e01d5fc78
commit 604ce21bdf
+1 -2
View File
@@ -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