Skip to content

Commit

Permalink
fix: missing fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoaguirre committed Dec 2, 2024
1 parent fef70c0 commit 9152aeb
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn relay_commands_add_registrar() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: add_registrar_call.encode().into() }
Transact { origin_kind, call: add_registrar_call.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -107,7 +107,7 @@ fn relay_commands_add_registrar_wrong_origin() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: add_registrar_call.encode().into() }
Transact { origin_kind, call: add_registrar_call.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -194,7 +194,7 @@ fn relay_commands_kill_identity() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: kill_identity_call.encode().into() }
Transact { origin_kind, call: kill_identity_call.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -252,7 +252,7 @@ fn relay_commands_kill_identity_wrong_origin() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: kill_identity_call.encode().into() }
Transact { origin_kind, call: kill_identity_call.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -298,7 +298,7 @@ fn relay_commands_add_remove_username_authority() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: add_username_authority.encode().into() }
Transact { origin_kind, call: add_username_authority.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -383,7 +383,7 @@ fn relay_commands_add_remove_username_authority() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: remove_username_authority.encode().into() }
Transact { origin_kind, call: remove_username_authority.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -443,7 +443,7 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
dest: bx!(VersionedLocation::from(Location::new(0, [Parachain(1004)]))),
message: bx!(VersionedXcm::from(Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact { origin_kind, call: add_username_authority.encode().into() }
Transact { origin_kind, call: add_username_authority.encode().into(), fallback_max_weight: None }
]))),
});

Expand Down Expand Up @@ -483,6 +483,7 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
Transact {
origin_kind: OriginKind::SovereignAccount,
call: remove_username_authority.encode().into(),
fallback_max_weight: None,
}
]))),
});
Expand Down

0 comments on commit 9152aeb

Please sign in to comment.