Skip to content

Conversation

@brenzi
Copy link
Contributor

@brenzi brenzi commented Aug 26, 2025

the nonce and the balances arguments can and should be compact encoded

XcmFeeParams has compact fields but can't derive compact because only single-field structs could derive that. Maybe it works anyway? If not, no big harm done

@brenzi brenzi requested a review from clangenb August 26, 2025 15:58
@brenzi brenzi merged commit d38b4b0 into master Aug 26, 2025
8 checks passed
@clangenb
Copy link
Contributor

the nonce and the balances arguments can and should be compact encoded

XcmFeeParams has compact fields but can't derive compact because only single-field structs could derive that. Maybe it works anyway? If not, no big harm done

Yes, structs can never be compact as a whole, they are just the concatenation of their encoded fields. So you could argue that a struct that only has compact fields is implicitly compact too, but it will never satisfy the trait bound (and there is no need to).

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.

3 participants