diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:15:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:15:50 +0800 |
commit | fc7592d73f1613b11e4b48904bfb041cccca5800 (patch) | |
tree | aef03ea37e7bed7209bccca3c1965ac99d09c954 /src/web3_wrapper.ts | |
parent | 5155f4980440f1c91006b124406c8b4a7a90e300 (diff) | |
download | dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.gz dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.bz2 dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.lz dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.xz dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.tar.zst dexon-0x-contracts-fc7592d73f1613b11e4b48904bfb041cccca5800.zip |
Fix getTransactionSenderAccountIfExistsAsync to return true senderAddress or undefined if non available
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r-- | src/web3_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 900c127d5..49bd8b67d 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -69,7 +69,7 @@ export class Web3Wrapper { const {timestamp} = await promisify(this.web3.eth.getBlock)(blockHash); return timestamp; } - private async getSenderAddressIfExistsAsync(): Promise<string|undefined> { + public async getSenderAddressIfExistsAsync(): Promise<string|undefined> { const defaultAccount = this.web3.eth.defaultAccount; if (!_.isUndefined(defaultAccount)) { return defaultAccount; |