Skip to content

Commit

Permalink
Fix NoneManager race condition (ethers-io#3812, ethers-io#3813).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent ac25516 commit 70c712c
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 70c712c

Please sign in to comment.