Merge pull request #899 from kroitor/patch-1
Deduplicate assert web3-wrapper signMessageAsync
This commit is contained in:
commit
bf69ca6e53
@ -291,7 +291,6 @@ export class Web3Wrapper {
|
|||||||
* @returns Signature string (might be VRS or RSV depending on the Signer)
|
* @returns Signature string (might be VRS or RSV depending on the Signer)
|
||||||
*/
|
*/
|
||||||
public async signMessageAsync(address: string, message: string): Promise<string> {
|
public async signMessageAsync(address: string, message: string): Promise<string> {
|
||||||
assert.isETHAddressHex('address', address);
|
|
||||||
assert.isETHAddressHex('address', address);
|
assert.isETHAddressHex('address', address);
|
||||||
assert.isString('message', message); // TODO: Should this be stricter? Hex string?
|
assert.isString('message', message); // TODO: Should this be stricter? Hex string?
|
||||||
const signData = await this._sendRawPayloadAsync<string>({
|
const signData = await this._sendRawPayloadAsync<string>({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user