Fix NoneManager race condition (#3812, #3813).

This commit is contained in:
Richard Moore 2023-02-22 21:09:54 -05:00
parent f9eed4cdb1
commit 5a3c10a29c

@ -36,7 +36,9 @@ export class NonceManager extends AbstractSigner {
if (this.#noncePromise == null) {
this.#noncePromise = super.getNonce("pending");
}
return (await this.#noncePromise) + this.#delta;
const delta = this.#delta;
return (await this.#noncePromise) + delta;
}
return super.getNonce(blockTag);