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

feat: add sepolia to allow chain for dev-unstable #3187

Merged
merged 4 commits into from
Mar 20, 2024

Conversation

3benbox
Copy link
Contributor

@3benbox 3benbox commented Mar 15, 2024

Add Sepolia chain id to the allowed list for dev-unstable.

@3benbox 3benbox requested review from ukstv and stbrody March 15, 2024 15:16
Copy link
Contributor

@stbrody stbrody left a comment

Choose a reason for hiding this comment

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

I don't think this change is sufficient. There are several other places in our codebase that reference chainids. Just grep for "eip155:5" to see all the places we use the Goerli chainid today. I assume most if not all of those places will need to be updated

packages/core/src/initialization/anchoring.ts Show resolved Hide resolved
@@ -4,13 +4,15 @@ export type SupportedNetwork =
| 'eip155:5' // goerli
| 'eip155:100' // gnosis
| 'eip155:1337' // ganache
| 'eip155:11155111' // sepolia

export const BLOCK_THRESHHOLDS: Record<SupportedNetwork, number> = {
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like this constant isn't actually used anywhere, let's just delete it.

Copy link
Contributor

Choose a reason for hiding this comment

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

note there's a similar constant in ethereum-anchor-validator.ts that is used however, and still need to be updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

ping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The type is used on line 9 above, no?
Can that be removed too?

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, this comment is on line 9, so I'm not sure what you're referring to. I'm saying the BLOCK_THRESHHOLDS constant in this file is defined but never used.

Also there's a BLOCK_THRESHHOLDS constant in ethereum-anchor-validator.ts that is used and I think still needs to be updated.

Copy link
Contributor

@stbrody stbrody left a comment

Choose a reason for hiding this comment

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

lgtm

@3benbox 3benbox merged commit daa4bef into develop Mar 20, 2024
7 checks passed
@3benbox 3benbox deleted the feat/dev-unstable-allow-sepolia branch March 20, 2024 16:02
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