Skip to content

Bugfix/contract version assignment #5318

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

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Jan 8, 2025

this PR fixes updates to current nym-node version as well as introduces migration to fix the existing state of the mainnet contract


This change is Reviewable

@jstuczyn jstuczyn added this to the Reeses milestone Jan 8, 2025
@jstuczyn jstuczyn requested a review from durch as a code owner January 8, 2025 15:28
@@ -34,9 +34,13 @@ impl NymNodeVersionHistory<'_> {
}

fn next_id(&self, storage: &mut dyn Storage) -> Result<u32, MixnetContractError> {
let next = self.id_counter.may_load(storage)?.unwrap_or_default();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was the bug. it was always returning "0"

Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-nextra ⬜️ Ignored (Inspect) Visit Preview Jan 8, 2025 3:49pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 8, 2025 3:49pm

@jstuczyn jstuczyn force-pushed the bugfix/contract-version-assignment branch from 2a3d9fb to e8aeb4d Compare January 8, 2025 15:41
@tommyv1987 tommyv1987 requested review from octol and durch and removed request for durch January 8, 2025 16:32
@jstuczyn jstuczyn merged commit 2448041 into release/2025.1-reeses Jan 9, 2025
18 checks passed
@jstuczyn jstuczyn deleted the bugfix/contract-version-assignment branch January 9, 2025 10:00
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.

1 participant