mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-22 10:29:55 +00:00
runtimes: fix call_size() test (#1245)
Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
1 parent
b84d0e4028
commit
8edc9038d1
2 files changed
+23
-5
No files matched your search
@@ -922,6 +922,15 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn call_size() {
|
||||
const BRIDGES_PALLETS_MAX_CALL_SIZE: usize = 200;
|
||||
assert!(
|
||||
core::mem::size_of::<pallet_bridge_grandpa::Call<Runtime>>() <=
|
||||
BRIDGES_PALLETS_MAX_CALL_SIZE
|
||||
);
|
||||
assert!(
|
||||
core::mem::size_of::<pallet_bridge_messages::Call<Runtime>>() <=
|
||||
BRIDGES_PALLETS_MAX_CALL_SIZE
|
||||
);
|
||||
const MAX_CALL_SIZE: usize = 230; // value from polkadot-runtime tests
|
||||
assert!(core::mem::size_of::<Call>() <= MAX_CALL_SIZE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user