Unpin coordinator deps.
Update coordinator tests for new tooling. Remove unecessary `chainId` parameter in `eip712_utils.createCoordinatorApprovalTypeData`
This commit is contained in:
committed by
Amir Bandeali
parent
e6aff19a0c
commit
e51b425200
@@ -74,7 +74,6 @@ describe('Libs tests', () => {
|
||||
const expectedApprovalHash = hashUtils.getApprovalHashHex(
|
||||
signedTx,
|
||||
coordinatorContract.address,
|
||||
chainId,
|
||||
txOrigin,
|
||||
approvalExpirationTimeSeconds,
|
||||
);
|
||||
|
@@ -8,12 +8,10 @@ import { hashUtils, SignedCoordinatorApproval } from './index';
|
||||
export class ApprovalFactory {
|
||||
private readonly _privateKey: Buffer;
|
||||
private readonly _verifyingContractAddress: string;
|
||||
private readonly _chainId: number;
|
||||
|
||||
constructor(privateKey: Buffer, verifyingContractAddress: string, chainId: number) {
|
||||
this._privateKey = privateKey;
|
||||
this._verifyingContractAddress = verifyingContractAddress;
|
||||
this._chainId = chainId;
|
||||
}
|
||||
|
||||
public newSignedApproval(
|
||||
@@ -25,7 +23,6 @@ export class ApprovalFactory {
|
||||
const approvalHashBuff = hashUtils.getApprovalHashBuffer(
|
||||
transaction,
|
||||
this._verifyingContractAddress,
|
||||
this._chainId,
|
||||
txOrigin,
|
||||
approvalExpirationTimeSeconds,
|
||||
);
|
||||
|
Reference in New Issue
Block a user