aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorCavan <cavan@radarrelay.com>2018-06-06 14:01:19 +0800
committerFabio Berger <me@fabioberger.com>2018-06-26 00:58:25 +0800
commit76f4d67f33af208e83eea5bcfa8802ce0e482901 (patch)
tree8934b90778897ad9b4e462163e797f6ea16e014c /packages/subproviders/src
parentbb4c748bf1e93d1f2c98514c574ba67678b0ed59 (diff)
downloaddexon-0x-contracts-76f4d67f33af208e83eea5bcfa8802ce0e482901.tar.gz
dexon-0x-contracts-76f4d67f33af208e83eea5bcfa8802ce0e482901.tar.zst
dexon-0x-contracts-76f4d67f33af208e83eea5bcfa8802ce0e482901.zip
Remove timestamps and fix typings
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/eth_lightwallet.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/subproviders/src/subproviders/eth_lightwallet.ts b/packages/subproviders/src/subproviders/eth_lightwallet.ts
index af4ea77e9..fedcc9578 100644
--- a/packages/subproviders/src/subproviders/eth_lightwallet.ts
+++ b/packages/subproviders/src/subproviders/eth_lightwallet.ts
@@ -57,7 +57,12 @@ export class EthLightwalletSubprovider extends BaseWalletSubprovider {
const tx = new EthereumTx(txParams);
const txHex = tx.serialize().toString('hex');
- let signedTxHex: string = this._signing.signTx(this._keystore, this._pwDerivedKey, txHex, txParams.from);
+ let signedTxHex: string = this._signing.signTx(
+ this._keystore,
+ this._pwDerivedKey,
+ txHex,
+ txParams.from,
+ );
signedTxHex = `0x${signedTxHex}`;
@@ -79,7 +84,12 @@ export class EthLightwalletSubprovider extends BaseWalletSubprovider {
}
assert.isHexString('data', data);
assert.isETHAddressHex('address', address);
- const result: ECSignatureBuffer = this._signing.signMsgHash(this._keystore, this._pwDerivedKey, data, address);
+ const result: ECSignatureBuffer = await this._signing.signMsgHash(
+ this._keystore,
+ this._pwDerivedKey,
+ data,
+ address,
+ );
const signature = this._signing.concatSig(result);