All glory to the linter gods.
This commit is contained in:
committed by
Amir Bandeali
parent
f77823ee24
commit
c096eae644
@@ -113,21 +113,9 @@ describe('Coordinator tests', () => {
|
||||
const takerPrivateKey = devConstants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(takerAddress)];
|
||||
const feeRecipientPrivateKey = devConstants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(feeRecipientAddress)];
|
||||
orderFactory = new OrderFactory(makerPrivateKey, defaultOrderParams);
|
||||
makerTransactionFactory = new TransactionFactory(
|
||||
makerPrivateKey,
|
||||
exchange.address,
|
||||
chainId,
|
||||
);
|
||||
takerTransactionFactory = new TransactionFactory(
|
||||
takerPrivateKey,
|
||||
exchange.address,
|
||||
chainId,
|
||||
);
|
||||
approvalFactory = new ApprovalFactory(
|
||||
feeRecipientPrivateKey,
|
||||
coordinatorContract.address,
|
||||
chainId,
|
||||
);
|
||||
makerTransactionFactory = new TransactionFactory(makerPrivateKey, exchange.address, chainId);
|
||||
takerTransactionFactory = new TransactionFactory(takerPrivateKey, exchange.address, chainId);
|
||||
approvalFactory = new ApprovalFactory(feeRecipientPrivateKey, coordinatorContract.address, chainId);
|
||||
});
|
||||
beforeEach(async () => {
|
||||
await blockchainLifecycle.startAsync();
|
||||
|
||||
@@ -72,21 +72,9 @@ describe('Mixins tests', () => {
|
||||
devConstants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(transactionSignerAddress)];
|
||||
const approvalSignerPrivateKey1 = devConstants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(approvalSignerAddress1)];
|
||||
const approvalSignerPrivateKey2 = devConstants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(approvalSignerAddress2)];
|
||||
transactionFactory = new TransactionFactory(
|
||||
transactionSignerPrivateKey,
|
||||
exchangeAddress,
|
||||
chainId,
|
||||
);
|
||||
approvalFactory1 = new ApprovalFactory(
|
||||
approvalSignerPrivateKey1,
|
||||
mixins.address,
|
||||
chainId,
|
||||
);
|
||||
approvalFactory2 = new ApprovalFactory(
|
||||
approvalSignerPrivateKey2,
|
||||
mixins.address,
|
||||
chainId,
|
||||
);
|
||||
transactionFactory = new TransactionFactory(transactionSignerPrivateKey, exchangeAddress, chainId);
|
||||
approvalFactory1 = new ApprovalFactory(approvalSignerPrivateKey1, mixins.address, chainId);
|
||||
approvalFactory2 = new ApprovalFactory(approvalSignerPrivateKey2, mixins.address, chainId);
|
||||
});
|
||||
beforeEach(async () => {
|
||||
await blockchainLifecycle.startAsync();
|
||||
|
||||
@@ -10,11 +10,7 @@ export class ApprovalFactory {
|
||||
private readonly _verifyingContractAddress: string;
|
||||
private readonly _chainId: number;
|
||||
|
||||
constructor(
|
||||
privateKey: Buffer,
|
||||
verifyingContractAddress: string,
|
||||
chainId: number,
|
||||
) {
|
||||
constructor(privateKey: Buffer, verifyingContractAddress: string, chainId: number) {
|
||||
this._privateKey = privateKey;
|
||||
this._verifyingContractAddress = verifyingContractAddress;
|
||||
this._chainId = chainId;
|
||||
|
||||
@@ -30,7 +30,8 @@ export const hashUtils = {
|
||||
transaction,
|
||||
verifyingContractAddress,
|
||||
txOrigin,
|
||||
approvalExpirationTimeSeconds)
|
||||
approvalExpirationTimeSeconds,
|
||||
)
|
||||
.toString('hex')}`;
|
||||
return hashHex;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user