Deduplicate assert web3-wrapper signMessageAsync

This commit is contained in:
Igor Kroitor
2018-07-20 08:49:16 +03:00
committed by GitHub
parent 0a3ba4d27d
commit 5bb68974ec

View File

@@ -291,7 +291,6 @@ export class Web3Wrapper {
* @returns Signature string (might be VRS or RSV depending on the Signer)
*/
public async signMessageAsync(address: string, message: string): Promise<string> {
assert.isETHAddressHex('address', address);
assert.isETHAddressHex('address', address);
assert.isString('message', message); // TODO: Should this be stricter? Hex string?
const signData = await this._sendRawPayloadAsync<string>({