Unpin coordinator deps.

Update coordinator tests for new tooling.
Remove unecessary `chainId` parameter in `eip712_utils.createCoordinatorApprovalTypeData`
This commit is contained in:
Lawrence Forman
2019-03-26 16:04:21 -04:00
committed by Amir Bandeali
parent e6aff19a0c
commit e51b425200
3 changed files with 1 additions and 4 deletions

View File

@@ -74,7 +74,6 @@ describe('Libs tests', () => {
const expectedApprovalHash = hashUtils.getApprovalHashHex(
signedTx,
coordinatorContract.address,
chainId,
txOrigin,
approvalExpirationTimeSeconds,
);

View File

@@ -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,
);