Added provider property to Web3Provider (#641).

This commit is contained in:
Richard Moore 2019-11-24 19:31:02 +09:00
parent 76a8e503dd
commit 6009a26c89
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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> {