diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 20:27:09 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 20:27:09 +0800 |
commit | 8103a6cedda2646405c8cfd644c609cf3e4a84cb (patch) | |
tree | 9699765d03304742edde3794c61a73b8686a19ef /src | |
parent | 80bbfc3f0ff6d000e628d6db4baddae94c4911a0 (diff) | |
download | dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar.gz dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar.bz2 dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar.lz dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar.xz dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.tar.zst dexon-sol-tools-8103a6cedda2646405c8cfd644c609cf3e4a84cb.zip |
Rename senderAddress to signerAddress
Diffstat (limited to 'src')
-rw-r--r-- | src/0x.js.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts index 84362bd9a..19e74b484 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, senderAddress: string): Promise<ECSignature> { + public async signOrderHashAsync(orderHashHex: string, signerAddress: string): Promise<ECSignature> { assert.isHexString('orderHashHex', orderHashHex); - await assert.isSenderAddressHexAsync('senderAddress', senderAddress, this.web3Wrapper); + await assert.isSenderAddressHexAsync('signerAddress', signerAddress, 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(senderAddress, msgHashHex); + const signature = await this.web3Wrapper.signTransactionAsync(signerAddress, 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, senderAddress); + const isValidSignature = ZeroEx.isValidSignature(orderHashHex, ecSignature, signerAddress); if (!isValidSignature) { throw new Error(ZeroExError.INVALID_SIGNATURE); } |