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

Replace duplicated whitelist with whitelisted_storage_keys #7024

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Jan 1, 2025

related issue: #7018

replaced duplicated whitelists with AllPalletsWithSystem::whitelisted_storage_keys(); in this PR

@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Jan 1, 2025
@bkchr bkchr requested a review from gui1117 January 1, 2025 21:14
Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

Thank you

@bkchr bkchr enabled auto-merge January 3, 2025 09:07
@bkchr
Copy link
Member

bkchr commented Jan 3, 2025

@qiweiii it doesn't compile. I think you forgot to import the trait.

auto-merge was automatically disabled January 3, 2025 12:58

Head branch was pushed to by a user without write access

@github-actions github-actions bot requested review from bkchr and gui1117 January 3, 2025 12:59
Copy link

github-actions bot commented Jan 3, 2025

Review required! Latest push from author must always be reviewed

//TODO: use from relay_well_known_keys::ACTIVE_CONFIG
hex_literal::hex!("06de3d8a54d27e44a9d5ce189618f22db4b49d95320d9021994c850f25b8e385").to_vec().into(),
];
use frame_support::traits::WhitelistedStorageKeys;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should go at the head of the file with the other use statements

Copy link
Member

Choose a reason for hiding this comment

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

No. This here is guarded by the runtime-benchmarks feature and we have here multiple imports.

@bkchr bkchr enabled auto-merge January 3, 2025 21:48
@bkchr bkchr added this pull request to the merge queue Jan 3, 2025
Merged via the queue into paritytech:master with commit 0b4f131 Jan 3, 2025
197 of 201 checks passed
@qiweiii qiweiii deleted the fix-whitelist-storage-key branch January 4, 2025 00:19
dudo50 pushed a commit to paraspell-research/polkadot-sdk that referenced this pull request Jan 4, 2025
…h#7024)

related issue: paritytech#7018

replaced duplicated whitelists with
`AllPalletsWithSystem::whitelisted_storage_keys();` in this PR

---------

Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants