Skip to content

Commit 0431b5c

Browse files
authored
Update XCM test (#1504)
1 parent 48737b1 commit 0431b5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

precompiles/xcm/src/tests.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ mod xcm_old_interface_test {
201201
)
202202
.expect_no_logs()
203203
.execute_returns(true);
204+
205+
let binding = take_sent_xcm();
206+
let (_location, Xcm(instructions)) = binding.get(0).expect("XCM should be sent");
207+
208+
// Ensure that origin is immediately descended to eliminate sovereign parachain origin.
209+
assert!(matches!(instructions.as_slice(), [DescendOrigin(..), ..]));
204210
});
205211
}
206212

0 commit comments

Comments
 (0)