I can't find anything on how to use the compact encoding of integers with Option<...>
. Is this possible?
And to elaborate, if I do something like this:
#[pallet::call]
... {
fn my_dispatchable(origin: OriginFor<T>, #[pallet::compact] my_option: Option<u128>) -> DispatchResult {
// ...
}
}
Then I get the following error:
the trait `From<parity_scale_codec::Compact<std::option::Option<u128>>>` is not implemented for `std::option::Option<u128>`
This sounds like it's not possible to compactly encode options of integers. Why?