Deduplicate assert web3-wrapper signMessageAsync
This commit is contained in:
@@ -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>({
|
||||
|
Reference in New Issue
Block a user