-
Notifications
You must be signed in to change notification settings - Fork 461
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
Added GnosisSpecProvider and gnosis_loads_properly test #5775
Conversation
ChainSpecLoader loader = new(new EthereumJsonSerializer()); | ||
string path = Path.Combine(TestContext.CurrentContext.WorkDirectory, "../../../../Chains/gnosis.json"); | ||
ChainSpec chainSpec = loader.Load(File.ReadAllText(path)); |
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.
This is used all over those test would be good to make it a method.
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.
agreed, will do in next PR
List<ForkActivation> forkActivationsToTest = new() | ||
{ | ||
(ForkActivation)0, | ||
(ForkActivation)1, | ||
(ForkActivation)(GnosisSpecProvider.ConstantinopoleBlockNumber -1), | ||
(ForkActivation)(GnosisSpecProvider.ConstantinopoleBlockNumber), | ||
(ForkActivation)(GnosisSpecProvider.ConstantinopoleFixBlockNumber -1), | ||
(ForkActivation)(GnosisSpecProvider.ConstantinopoleFixBlockNumber), | ||
(ForkActivation)(GnosisSpecProvider.IstanbulBlockNumber -1), | ||
(ForkActivation)(GnosisSpecProvider.IstanbulBlockNumber), | ||
(ForkActivation)(GnosisSpecProvider.BerlinBlockNumber -1), | ||
(ForkActivation)(GnosisSpecProvider.BerlinBlockNumber), | ||
(ForkActivation)(GnosisSpecProvider.LondonBlockNumber -1), | ||
(ForkActivation)(GnosisSpecProvider.LondonBlockNumber), | ||
(1, GnosisSpecProvider.ShanghaiTimestamp - 1), | ||
(1, GnosisSpecProvider.ShanghaiTimestamp), | ||
(999_999_999, 999_999_999) // far in the future | ||
}; |
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.
similarly to some extent
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.
yeah, it might be a bit harder though. Of course, doable ;)
* Working on GnosisSpecProvider * Passed test * More GetSpec checks
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing