This commit is contained in:
Keith Yeung
2022-03-10 21:51:38 -08:00
parent 005d37a1d4
commit a10ac2e7d2
3 changed files with 42 additions and 15 deletions
+11
View File
@@ -422,9 +422,16 @@ mod tests {
pub struct MockExec;
impl ExecuteXcm<Call> for MockExec {
type Prepared = Weightless;
fn prepare(message: Xcm<()>) -> Result<Self::Prepared, Xcm<Call>> {
Err(message)
}
fn execute_xcm_in_credit(
_origin: impl Into<MultiLocation>,
message: Xcm,
_hash: XcmHash,
weight_limit: Weight,
_credit: Weight,
) -> Outcome {
@@ -442,6 +449,10 @@ mod tests {
TRACE.with(|q| q.borrow_mut().push((message, o.clone())));
o
}
fn charge_fees(_location: impl Into<MultiLocation>, _fees: MultiAssets) -> XcmResult {
Err(XcmError::Unimplemented)
}
}
impl Config for Test {