mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
companion: for call usage https://github.com/paritytech/substrate/pull/9418 (#3522)
* add test for call size * fix box arg * fix xcm variant length + increase limit a bit * fix para sudo wrapper call length * reorganize * fmt * fix tests * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
36b390ceea
commit
f78f803698
@@ -39,3 +39,13 @@ fn sample_size_is_sensible() {
|
||||
BlockWeights::get().max_block
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn call_size() {
|
||||
assert!(
|
||||
core::mem::size_of::<Call>() <= 230,
|
||||
"size of Call is more than 230 bytes: some calls have too big arguments, use Box to reduce \
|
||||
the size of Call.
|
||||
If the limit is too strong, maybe consider increase the limit to 300.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user