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

migrate pallet-fast-unstake to bench v2 syntax #6390

Closed
wants to merge 2 commits into from

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Nov 6, 2024

Migrates the pallet-fast-unstake to the benchmark v2 syntax.

Part of:

@clangenb clangenb requested a review from a team as a code owner November 6, 2024 14:20
Comment on lines +128 to +131
assert_eq!(
fast_unstake_events::<T>().last(),
Some(Event::BatchFinished { size: b })
));
Some(&Event::BatchFinished { size: b })
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

b was ignored in the previous statement, but the unused warning didn't show in the bench v1 syntax.

Now the value is actually asserted.

@clangenb
Copy link
Contributor Author

clangenb commented Nov 6, 2024

Duplicate work of #6311

@clangenb clangenb closed this Nov 6, 2024
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