mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-13 14:05:24 +00:00
Use BigInt
constructor instead of happening n
as it seems to have better browser support. (#611)
This commit is contained in:
parent
ac337855aa
commit
f4e81dd29c
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- Use `BigInt` constructor instead of happening `n` as it seems to have better browser support.
|
||||
|
||||
## [0.19.1] - 2022-03-10
|
||||
|
||||
### Added
|
||||
|
@ -31,7 +31,7 @@ export class ENR extends Map<ENRKey, ENRValue> {
|
||||
|
||||
constructor(
|
||||
kvs: Record<ENRKey, ENRValue> = {},
|
||||
seq: SequenceNumber = 1n,
|
||||
seq: SequenceNumber = BigInt(1),
|
||||
signature: Uint8Array | null = null
|
||||
) {
|
||||
super(Object.entries(kvs));
|
||||
|
Loading…
x
Reference in New Issue
Block a user