-
Notifications
You must be signed in to change notification settings - Fork 127
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
Conversation
There was a problem hiding this 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
@@ -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> = { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Add Sepolia chain id to the allowed list for dev-unstable.