Skip to content

Commit

Permalink
Added provider property to Web3Provider (#641).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 24, 2019
1 parent 76a8e50 commit 6009a26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src.ts/providers/web3-provider.ts
Expand Up @@ -55,6 +55,9 @@ export class Web3Provider extends JsonRpcProvider {
}

defineReadOnly(this, '_web3Provider', web3Provider);

// @TODO: In v5 remove the above definition; only this one is needed
defineReadOnly(this, 'provider', web3Provider);
}

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

0 comments on commit 6009a26

Please sign in to comment.