mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Fixes
This commit is contained in:
@@ -438,23 +438,10 @@ mod tests {
|
||||
fn execute(
|
||||
_origin: impl Into<MultiLocation>,
|
||||
_: Weightless,
|
||||
message: &Xcm,
|
||||
_hash: XcmHash,
|
||||
weight_limit: Weight,
|
||||
_weight_limit: Weight,
|
||||
) -> Outcome {
|
||||
let o = match (message.0.len(), &message.0.first()) {
|
||||
(1, Some(Transact { require_weight_at_most, .. })) => {
|
||||
if *require_weight_at_most <= weight_limit {
|
||||
Outcome::Complete(*require_weight_at_most)
|
||||
} else {
|
||||
Outcome::Error(XcmError::WeightLimitReached(*require_weight_at_most))
|
||||
}
|
||||
},
|
||||
// use 1000 to decide that it's not supported.
|
||||
_ => Outcome::Incomplete(1000.min(weight_limit), XcmError::Unimplemented),
|
||||
};
|
||||
TRACE.with(|q| q.borrow_mut().push((message, o.clone())));
|
||||
o
|
||||
unreachable!()
|
||||
}
|
||||
|
||||
fn charge_fees(_location: impl Into<MultiLocation>, _fees: MultiAssets) -> XcmResult {
|
||||
|
||||
Reference in New Issue
Block a user