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

chore: renames L1ToL2Message to parentChain/Chain #344

Merged
merged 13 commits into from
Dec 4, 2023
Merged

chore: renames L1ToL2Message to parentChain/Chain #344

merged 13 commits into from
Dec 4, 2023

Conversation

douglance
Copy link
Contributor

@douglance douglance commented Sep 27, 2023

closes #341

@cla-bot cla-bot bot added the cla-signed label Sep 27, 2023
@douglance douglance marked this pull request as ready for review November 20, 2023 16:58
@@ -70,8 +70,8 @@ export const getCustomNetworks = async (
l1Url: string,
l2Url: string
): Promise<{
l1Network: L1Network
l2Network: Omit<L2Network, 'tokenBridge'>
l1Network: ParentChain
Copy link
Contributor

Choose a reason for hiding this comment

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

should we rename the vars too - parentChain and childChain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should. I think we should do that in a separate PR because that will change ~200 uses in the test files.

l1Network: L1Network
l2Network: Omit<L2Network, 'tokenBridge'>
l1Network: ParentChain
l2Network: Omit<ChildChain, 'tokenBridge'>
}> => {
const l1Provider = new JsonRpcProvider(l1Url)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we rename these inner vars too - eg childProvider, childNetworkInfo etc. I guess the general pattern is just get rid of l1/l2 everywhere. So my comments are the same for this throughout.

Copy link
Contributor Author

@douglance douglance Dec 4, 2023

Choose a reason for hiding this comment

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

I'll change those in a future PR because they're exported out of this function and used in the tests.

@@ -22,8 +22,8 @@ import { L2ContractTransaction } from '../message/L2Transaction'

import {
parentChains as l1Networks,
ParentChain as L1Network,
ChildChain as L2Network,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these renamings happening in another PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sir. All the import as assertions created in these PRs.

@douglance douglance merged commit 1066dbf into v4 Dec 4, 2023
7 checks passed
@douglance douglance deleted the dl/348 branch April 22, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants