Skip to content

Commit 6009a26

Browse files
committed
Added provider property to Web3Provider (ethers-io#641).
1 parent 76a8e50 commit 6009a26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src.ts/providers/web3-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export class Web3Provider extends JsonRpcProvider {
5555
}
5656

5757
defineReadOnly(this, '_web3Provider', web3Provider);
58+
59+
// @TODO: In v5 remove the above definition; only this one is needed
60+
defineReadOnly(this, 'provider', web3Provider);
5861
}
5962

6063
send(method: string, params: any): Promise<any> {

0 commit comments

Comments
 (0)