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

fix(perp): add proper stateless genesis validation #857

Merged
merged 13 commits into from
Aug 31, 2022

Conversation

testinginprod
Copy link
Collaborator

No description provided.

@testinginprod testinginprod requested a review from a team as a code owner August 25, 2022 07:41
@testinginprod testinginprod changed the title fix(perp): add proper genesis validation fix(perp): add proper stateless genesis validation Aug 25, 2022
@testinginprod
Copy link
Collaborator Author

wanted to add a benchmark on position validation

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -21,5 +23,29 @@ func DefaultGenesis() *GenesisState {
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
for i, pos := range gs.Positions {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about the test of this one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added, also found some other bugs which are fixed

@testinginprod testinginprod enabled auto-merge (squash) August 31, 2022 14:07
@testinginprod testinginprod merged commit 5d29069 into master Aug 31, 2022
@testinginprod testinginprod deleted the mercilex/pricefeed-genesis branch August 31, 2022 14:11
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.

4 participants