Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(campaign): fix sample genesis with inconsistent state #684

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

lumtis
Copy link
Contributor

@lumtis lumtis commented Apr 4, 2022

CampaignGenesisState from sample contains campaigns initialized with empty allocated shares and mainnet accounts containing shares.

This genesis state was inconsistent because the sum of shares allocated for accounts must be tracked by the AllocatedShares value of the campaign

This PR removes the accounts for a quick fix. A further change can include adding accounts with the allocated correctly tracked for better entropy

Copy link

@aljo242 aljo242 left a comment

Choose a reason for hiding this comment

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

thanks !

@codecov
Copy link

codecov bot commented Apr 4, 2022

Codecov Report

Merging #684 (efc8573) into develop (13b5542) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #684      +/-   ##
===========================================
- Coverage    10.92%   10.91%   -0.01%     
===========================================
  Files          274      274              
  Lines        60446    60446              
===========================================
- Hits          6601     6595       -6     
- Misses       53644    53648       +4     
- Partials       201      203       +2     
Impacted Files Coverage Δ
x/campaign/genesis.go 82.35% <0.00%> (-17.65%) ⬇️

@lumtis lumtis merged commit 800bf7c into develop Apr 4, 2022
@lumtis lumtis deleted the fix/inconsistent-sample-genesis branch April 4, 2022 15:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants