diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-10 01:52:02 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-10 01:52:02 +0800 |
commit | 8f921a61da6b9976ea680df4fd51147bb78040d9 (patch) | |
tree | 20de36eb9d9eb37b51e0d8e29e682efc6d15ed9d | |
parent | cfd734d84fadef5c5a7238f092e9a7721e004ef1 (diff) | |
download | dexon-0x-contracts-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.gz dexon-0x-contracts-8f921a61da6b9976ea680df4fd51147bb78040d9.tar.zst dexon-0x-contracts-8f921a61da6b9976ea680df4fd51147bb78040d9.zip |
Add getProvider method to web3Wrapper
-rw-r--r-- | packages/web3-wrapper/CHANGELOG.md | 4 | ||||
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/web3-wrapper/CHANGELOG.md b/packages/web3-wrapper/CHANGELOG.md index ac0f5ff0b..9d21f79b2 100644 --- a/packages/web3-wrapper/CHANGELOG.md +++ b/packages/web3-wrapper/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v0.2.1 _TBD_ + + * Add a `getProvider` method + ## v0.2.0 _March 4, 2018_ * Ensure all returned user addresses are lowercase (#373) 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); } |