aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-04 06:22:21 +0800
committerFabio Berger <me@fabioberger.com>2018-07-04 06:22:21 +0800
commit6aa4984fed55be7ba4fe0caf0f994a11bccdc155 (patch)
tree8d707df8996a9b9f9921a9c702add87ee268e4dd
parentf5cd1ac82eeaef97cb668ff6d622407f54ac165a (diff)
downloaddexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar.gz
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar.bz2
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar.lz
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar.xz
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.tar.zst
dexon-sol-tools-6aa4984fed55be7ba4fe0caf0f994a11bccdc155.zip
Fix instance variable name
-rw-r--r--packages/subproviders/src/subproviders/signer.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/subproviders/src/subproviders/signer.ts b/packages/subproviders/src/subproviders/signer.ts
index e436c7855..08a9daceb 100644
--- a/packages/subproviders/src/subproviders/signer.ts
+++ b/packages/subproviders/src/subproviders/signer.ts
@@ -12,14 +12,14 @@ import { Subprovider } from './subprovider';
* are passed onwards for subsequent subproviders to handle.
*/
export class SignerSubprovider extends Subprovider {
- private _SignerWrapper: Web3Wrapper;
+ private _web3Wrapper: Web3Wrapper;
/**
* Instantiates a new SignerSubprovider
* @param provider Web3 provider that should handle all user account related requests
*/
constructor(provider: Provider) {
super();
- this._SignerWrapper = new Web3Wrapper(provider);
+ this._web3Wrapper = new Web3Wrapper(provider);
}
/**
* This method conforms to the web3-provider-engine interface.
@@ -34,7 +34,7 @@ export class SignerSubprovider extends Subprovider {
switch (payload.method) {
case 'web3_clientVersion':
try {
- const nodeVersion = await this._SignerWrapper.getNodeVersionAsync();
+ const nodeVersion = await this._web3Wrapper.getNodeVersionAsync();
end(null, nodeVersion);
} catch (err) {
end(err);
@@ -42,7 +42,7 @@ export class SignerSubprovider extends Subprovider {
return;
case 'eth_accounts':
try {
- const accounts = await this._SignerWrapper.getAvailableAddressesAsync();
+ const accounts = await this._web3Wrapper.getAvailableAddressesAsync();
end(null, accounts);
} catch (err) {
end(err);
@@ -51,7 +51,7 @@ export class SignerSubprovider extends Subprovider {
case 'eth_sendTransaction':
const [txParams] = payload.params;
try {
- const txHash = await this._SignerWrapper.sendTransactionAsync(txParams);
+ const txHash = await this._web3Wrapper.sendTransactionAsync(txParams);
end(null, txHash);
} catch (err) {
end(err);
@@ -60,7 +60,7 @@ export class SignerSubprovider extends Subprovider {
case 'eth_sign':
const [address, message] = payload.params;
try {
- const signature = await this._SignerWrapper.signMessageAsync(address, message);
+ const signature = await this._web3Wrapper.signMessageAsync(address, message);
end(null, signature);
} catch (err) {
end(err);