From 61b900f26e3b072c250804aaf6381cb059d6baf9 Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Wed, 6 Sep 2023 11:55:47 -0400 Subject: [PATCH] chore: revise types --- test/Dataworker.proposeRootBundle.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Dataworker.proposeRootBundle.ts b/test/Dataworker.proposeRootBundle.ts index 47843766c..853283688 100644 --- a/test/Dataworker.proposeRootBundle.ts +++ b/test/Dataworker.proposeRootBundle.ts @@ -1,5 +1,5 @@ import { HubPoolClient, MultiCallerClient, SpokePoolClient } from "../src/clients"; -import { AnyObject, EMPTY_MERKLE_ROOT, MAX_UINT_VAL, getDepositPath } from "../src/utils"; +import { EMPTY_MERKLE_ROOT, MAX_UINT_VAL, getDepositPath } from "../src/utils"; import { CHAIN_ID_TEST_LIST, amountToDeposit, destinationChainId, originChainId, utf8ToHex } from "./constants"; import { setupFastDataworker } from "./fixtures/Dataworker.Fixture"; import { @@ -58,8 +58,8 @@ describe("Dataworker: Propose root bundle", async function () { const getMostRecentLog = (_spy: sinon.SinonSpy, message: string) => { return spy .getCalls() - .sort((logA: { callId: number }, logB: { callId: number }) => logB.callId - logA.callId) // Sort by callId in descending order - .find((log: AnyObject) => log.lastArg["message"].includes(message)).lastArg; + .sort((logA: unknown, logB: unknown) => logB["callId"] - logA["callId"]) // Sort by callId in descending order + .find((log: unknown) => log["lastArg"]["message"].includes(message)).lastArg; }; // TEST 1: