aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper/src/index.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-10 01:52:02 +0800
committerFabio Berger <me@fabioberger.com>2018-03-10 01:52:02 +0800
commit8f921a61da6b9976ea680df4fd51147bb78040d9 (patch)
tree20de36eb9d9eb37b51e0d8e29e682efc6d15ed9d /packages/web3-wrapper/src/index.ts
parentcfd734d84fadef5c5a7238f092e9a7721e004ef1 (diff)
downloaddexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.gz
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.bz2
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.lz
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.xz
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.zst
dexon-sol-tools-8f921a61da6b9976ea680df4fd51147bb78040d9.zip
Add getProvider method to web3Wrapper
Diffstat (limited to 'packages/web3-wrapper/src/index.ts')
-rw-r--r--packages/web3-wrapper/src/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts
index 9be4280b3..e14eb2914 100644
--- a/packages/web3-wrapper/src/index.ts
+++ b/packages/web3-wrapper/src/index.ts
@@ -22,6 +22,9 @@ export class Web3Wrapper {
public getContractDefaults(): Partial<TxData> {
return this._defaults;
}
+ public getProvider(): Web3.Provider {
+ return this._web3.currentProvider;
+ }
public setProvider(provider: Web3.Provider) {
this._web3.setProvider(provider);
}