@ethersproject/providers
Advanced tools
Comparing version 6.0.0-beta.4 to 6.0.0-beta.5
@@ -176,4 +176,2 @@ // @TODO | ||
} | ||
//this.#approxNumber = -2; | ||
//this.#approxNumberT0 = 0; | ||
__classPrivateFieldSet(this, _AbstractProvider_performCache, new Map(), "f"); | ||
@@ -581,3 +579,3 @@ __classPrivateFieldSet(this, _AbstractProvider_subs, new Map(), "f"); | ||
this.off("block", listener); | ||
reject(logger.makeError("timeout", "TIMEOUT", {})); | ||
reject(logger.makeError("timeout", "TIMEOUT", { reason: "timeout" })); | ||
}, timeout); | ||
@@ -584,0 +582,0 @@ } |
@@ -20,3 +20,3 @@ { | ||
"ethereum": "donations.ethers.eth", | ||
"gitHead": "0ca05ffdaa9e1307a696cbf5f5fa4b8aed7d8da1", | ||
"gitHead": "d1696bfa26b800157764d795efd7bd07fe36a758", | ||
"keywords": [ | ||
@@ -42,6 +42,6 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xeefd94b84228a86fb22539b8af45bf597c0827a68243714659b103da5ff1c609", | ||
"tarballHash": "0xdb27132f14a78ce15debbeb4e15d7c8aea409d3d23c7c8046032786ccbb6d401", | ||
"type": "module", | ||
"types": "./lib/index.d.ts", | ||
"version": "6.0.0-beta.4" | ||
"version": "6.0.0-beta.5" | ||
} |
@@ -329,4 +329,2 @@ // @TODO | ||
//this.#approxNumber = -2; | ||
//this.#approxNumberT0 = 0; | ||
this.#performCache = new Map(); | ||
@@ -456,3 +454,3 @@ | ||
// State | ||
async getBlockNumber() { | ||
async getBlockNumber(): Promise<number> { | ||
return logger.getNumber(await this.#perform({ method: "getBlockNumber" }), "%response"); | ||
@@ -881,3 +879,3 @@ } | ||
this.off("block", listener); | ||
reject(logger.makeError("timeout", "TIMEOUT", { })); | ||
reject(logger.makeError("timeout", "TIMEOUT", { reason: "timeout" })); | ||
}, timeout); | ||
@@ -884,0 +882,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
757616
12576