Skip to content

Commit

Permalink
Fix NoneManager race condition (#3812, #3813).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Feb 23, 2023
1 parent f9eed4c commit 5a3c10a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src.ts/providers/signer-noncemanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5a3c10a

Please sign in to comment.