File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -428,10 +428,18 @@ fn send_as_sovereign_fails_if_bad_origin() {
428
428
429
429
#[ test]
430
430
fn call_size_limit ( ) {
431
+ // Ensures Call enum doesn't allocate more than 200 bytes in runtime
431
432
assert ! (
432
433
core:: mem:: size_of:: <crate :: Call :: <crate :: tests:: para:: Runtime >>( ) <= 200 ,
433
434
"size of Call is more than 200 bytes: some calls have too big arguments, use Box to \
434
435
reduce the size of Call.
435
436
If the limit is too strong, maybe consider increasing the limit" ,
436
437
) ;
438
+
439
+ assert ! (
440
+ core:: mem:: size_of:: <orml_xcm:: Call :: <crate :: tests:: para:: Runtime >>( ) <= 200 ,
441
+ "size of Call is more than 200 bytes: some calls have too big arguments, use Box to \
442
+ reduce the size of Call.
443
+ If the limit is too strong, maybe consider increasing the limit" ,
444
+ ) ;
437
445
}
You can’t perform that action at this time.
0 commit comments