aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
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
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')
-rw-r--r--packages/subproviders/CHANGELOG.json8
-rw-r--r--packages/subproviders/src/subproviders/eth_lightwallet.ts14
2 files changed, 20 insertions, 2 deletions
diff --git a/packages/subproviders/CHANGELOG.json b/packages/subproviders/CHANGELOG.json
index 65a74f7a8..c4dca2864 100644
--- a/packages/subproviders/CHANGELOG.json
+++ b/packages/subproviders/CHANGELOG.json
@@ -1,5 +1,13 @@
[
{
+ "version": "0.11.0",
+ "changes": [
+ {
+ "note": "Add `EthLightwalletSubprovider`"
+ }
+ ]
+ },
+ {
"timestamp": 1529397769,
"version": "0.10.4",
"changes": [
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);