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