2 Answers
https://paritytech.github.io/substrate/master/frame_support/pallet_macros/attr.compact.html
Compact encoding for arguments can be achieved via #[pallet::compact].
The function must return a DispatchResultWithPostInfo or DispatchResult.
It can make the args size smaller when you send a tx.
-
When should you use or not use it? What should be the guideline? Nov 17, 2022 at 20:53
Compact encoding for arguments can be achieved via #[pallet::compact]. The function must return a DispatchResult. it is useful for getting the compact decode