From a79c1d0c6444f26fd0e4a5589a6d833222865d45 Mon Sep 17 00:00:00 2001 From: Andres Quijano Date: Thu, 16 Jun 2022 14:45:58 -0500 Subject: [PATCH] Aply some final changes related to the task of eliminate the use of the domain separator --- src/ContractInteractor.ts | 2 -- src/EIP712/RelayData.ts | 3 --- src/EIP712/TypedRequestData.ts | 1 - src/types/RelayTransactionRequest.ts | 2 -- 4 files changed, 8 deletions(-) diff --git a/src/ContractInteractor.ts b/src/ContractInteractor.ts index 9210c6c..bbd51a0 100644 --- a/src/ContractInteractor.ts +++ b/src/ContractInteractor.ts @@ -763,7 +763,6 @@ export default class ContractInteractor { async walletFactoryDeployEstimateGasForInternalCall( request: DeployRequest, factory: string, - // domainHash: string, suffixData: string, signature: string, testCall = false @@ -772,7 +771,6 @@ export default class ContractInteractor { const method = pFactory.contract.methods.relayedUserSmartWalletCreation( request.request, - // domainHash, suffixData, signature ); diff --git a/src/EIP712/RelayData.ts b/src/EIP712/RelayData.ts index 22f86cf..cfc2d61 100644 --- a/src/EIP712/RelayData.ts +++ b/src/EIP712/RelayData.ts @@ -1,8 +1,5 @@ -// import { PrefixedHexString } from 'ethereumjs-tx'; - export default interface RelayData { gasPrice: string; - // domainSeparator: PrefixedHexString; relayWorker: string; callForwarder: string; callVerifier: string; diff --git a/src/EIP712/TypedRequestData.ts b/src/EIP712/TypedRequestData.ts index 036e17a..dac34e6 100644 --- a/src/EIP712/TypedRequestData.ts +++ b/src/EIP712/TypedRequestData.ts @@ -24,7 +24,6 @@ export const EIP712DomainType = [ const RelayDataType = [ { name: 'gasPrice', type: 'uint256' }, - // { name: 'domainSeparator', type: 'bytes32' }, { name: 'relayWorker', type: 'address' }, { name: 'callForwarder', type: 'address' }, { name: 'callVerifier', type: 'address' } diff --git a/src/types/RelayTransactionRequest.ts b/src/types/RelayTransactionRequest.ts index 4434382..9772746 100644 --- a/src/types/RelayTransactionRequest.ts +++ b/src/types/RelayTransactionRequest.ts @@ -34,7 +34,6 @@ export const DeployTransactionRequestShape = { }, relayData: { gasPrice: ow.string, - // : ow.string, relayWorker: ow.string, callForwarder: ow.string, callVerifier: ow.string @@ -63,7 +62,6 @@ export const RelayTransactionRequestShape = { }, relayData: { gasPrice: ow.string, - // domainSeparator: ow.string, relayWorker: ow.string, callForwarder: ow.string, callVerifier: ow.string