Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Update Preimages API of pallet Whitelist #12821

Closed
gavofyork opened this issue Dec 1, 2022 · 1 comment
Closed

Update Preimages API of pallet Whitelist #12821

gavofyork opened this issue Dec 1, 2022 · 1 comment
Assignees

Comments

@gavofyork
Copy link
Member

gavofyork commented Dec 1, 2022

Instead of using

type PreimageProvider: PreimageProvider<Self::Hash> + PreimageRecipient<Self::Hash>;

it should be

type PreimageProvider: QueryPreimage + StorePreimage;

When using QueryPreimage::fetch(hash: &Hash, len: Option<u32>), make sure that len is Some! This will basically mean that dispatch_whitelisted_call will need to take an extra len: u32 argument.

@muharem
Copy link
Contributor

muharem commented Dec 12, 2022

Solved in the PR #12834

@muharem muharem closed this as completed Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants