Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: reduce errors in relayer tests #923

Conversation

james-a-morris
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Sep 5, 2023

@james-a-morris james-a-morris marked this pull request as ready for review September 6, 2023 15:59
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just want to double check that there are no functional changes here, and this is only a refactor. Is that the intention?

@@ -729,7 +728,10 @@ describe("Dataworker: Load data used in all functions", async function () {
);
const blockNumber = await spokePool_2.provider.getBlockNumber();
const blockTimestamp = (await spokePool_2.provider.getBlock(blockNumber)).timestamp;
const realizedLpFeePctData = await hubPoolClient.computeRealizedLpFeePct(deposit1, l1Token_1.address);
const realizedLpFeePctData = await hubPoolClient.computeRealizedLpFeePct(
{ ...deposit1, blockNumber },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a functional change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is related to refactorings & slight rewrites to get the software to be able to compile with tsc.

Prior to this, we were having actual compiler errors due to signature incongruence on function/constructor calls.

test/utils/utils.ts Show resolved Hide resolved
@james-a-morris
Copy link
Contributor Author

@mrice32 resolving as we discussed offline.

@james-a-morris james-a-morris merged commit 1578ff6 into master Sep 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants