Companion #2995: Dispatchable for teleporting assets (#431)

* Companion #2995: Dispatchable for teleporting assets

* Fixes

* Fixes

* Fixes

* Fixes

* Bump Substrate

* Bump Polkadot

* Fixes
This commit is contained in:
Gavin Wood
2021-05-11 15:41:52 +02:00
committed by GitHub
parent 8accc88e76
commit 8cd71668a3
4 changed files with 221 additions and 220 deletions
+6 -2
View File
@@ -416,8 +416,12 @@ mod tests {
pub struct MockExec;
impl ExecuteXcm<Call> for MockExec {
type Call = Call;
fn execute_xcm(_origin: MultiLocation, message: Xcm, weight_limit: Weight) -> Outcome {
fn execute_xcm_in_credit(
_origin: MultiLocation,
message: Xcm,
weight_limit: Weight,
_credit: Weight,
) -> Outcome {
let o = match &message {
Xcm::Transact { require_weight_at_most, .. } => {
if *require_weight_at_most <= weight_limit {