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: Fix pointer to store upgrades inside loop #774

Merged
merged 1 commit into from
Aug 3, 2023
Merged

fix: Fix pointer to store upgrades inside loop #774

merged 1 commit into from
Aug 3, 2023

Conversation

outofforest
Copy link
Contributor

Due to how for loop works, if many upgrade plans are specified, the store upgrades are taken from the last one on the list, not the one matched by the upgrade name. To fix this, the copy of the object is made, before taking the pointer.

@Reecepbcups
Copy link
Contributor

nice catch! I'll test around with this today & get it in after

Copy link
Contributor

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

Works as expected, thank you very much for this!

@Reecepbcups Reecepbcups merged commit dc41ce8 into CosmosContracts:main Aug 3, 2023
4 checks passed
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