Skip to content

Commit

Permalink
Correctly return the Provider in NonceManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 4, 2020
1 parent 2882546 commit 6caf7c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/experimental/src.ts/nonce-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const logger = new ethers.utils.Logger(version);

export class NonceManager extends ethers.Signer {
readonly signer: ethers.Signer;
readonly provider: ethers.providers.Provider;

_initialPromise: Promise<number>;
_deltaCount: number;
Expand All @@ -23,6 +22,10 @@ export class NonceManager extends ethers.Signer {
ethers.utils.defineReadOnly(this, "signer", signer);
}

get provider(): ethers.providers.Provider {
return this.signer.provider;
}

connect(provider: ethers.providers.Provider): NonceManager {
return new NonceManager(this.signer.connect(provider));
}
Expand Down

0 comments on commit 6caf7c2

Please sign in to comment.