aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:40:58 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 18:40:58 +0800
commitf7236e7f499f59d883603798cda11d3636b26f4a (patch)
treea4ab3fd3758bc179cb16fea8dfa78700f5d309aa /src/0x.js.ts
parented3d1a8142e6f65480f95df7c3991ae00c757e38 (diff)
downloaddexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.gz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.bz2
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.lz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.xz
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.tar.zst
dexon-sol-tools-f7236e7f499f59d883603798cda11d3636b26f4a.zip
Rename senderAccount to senderAddress
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r--src/0x.js.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 65d363218..0d8e30d8c 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -161,9 +161,9 @@ export class ZeroEx {
* Signs an orderHash and returns it's elliptic curve signature
* This method currently supports TestRPC, Geth and Parity above and below V1.6.6
*/
- public async signOrderHashAsync(orderHashHex: string, senderAccount: string): Promise<ECSignature> {
+ public async signOrderHashAsync(orderHashHex: string, senderAddress: string): Promise<ECSignature> {
assert.isHexString('orderHashHex', orderHashHex);
- await assert.isSenderAddressHexAsync('senderAccount', senderAccount, this.web3Wrapper);
+ await assert.isSenderAddressHexAsync('senderAddress', senderAddress, this.web3Wrapper);
let msgHashHex;
const nodeVersion = await this.web3Wrapper.getNodeVersionAsync();
@@ -177,7 +177,7 @@ export class ZeroEx {
msgHashHex = ethUtil.bufferToHex(msgHashBuff);
}
- const signature = await this.web3Wrapper.signTransactionAsync(senderAccount, msgHashHex);
+ const signature = await this.web3Wrapper.signTransactionAsync(senderAddress, msgHashHex);
let signatureData;
const [nodeVersionNumber] = findVersions(nodeVersion);
@@ -207,7 +207,7 @@ export class ZeroEx {
r: ethUtil.bufferToHex(r),
s: ethUtil.bufferToHex(s),
};
- const isValidSignature = ZeroEx.isValidSignature(orderHashHex, ecSignature, senderAccount);
+ const isValidSignature = ZeroEx.isValidSignature(orderHashHex, ecSignature, senderAddress);
if (!isValidSignature) {
throw new Error(ZeroExError.INVALID_SIGNATURE);
}