Return SignedOrder from signing utils.
Create a helper back in EIP712Utils for code cleanup. Moved constants in order-utils into the constants object
This commit is contained in:
@@ -318,9 +318,9 @@ export class Web3Wrapper {
|
||||
* Sign an EIP712 typed data message with a specific address's private key (`eth_signTypedData`)
|
||||
* @param address Address of signer
|
||||
* @param typedData Typed data message to sign
|
||||
* @returns Signature string (might be VRS or RSV depending on the Signer)
|
||||
* @returns Signature string (as RSV)
|
||||
*/
|
||||
public async signTypedDataAsync(address: string, typedData: object): Promise<string> {
|
||||
public async signTypedDataAsync(address: string, typedData: any): Promise<string> {
|
||||
assert.isETHAddressHex('address', address);
|
||||
assert.doesConformToSchema('typedData', typedData, schemas.eip712TypedData);
|
||||
const signData = await this.sendRawPayloadAsync<string>({
|
||||
|
Reference in New Issue
Block a user