Skip to content

Commit

Permalink
Remvoe require_weight_at_most from test Transacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbmb committed Nov 11, 2024
1 parent 4159e9e commit 3308e96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ fn relay_commands_add_registrar() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(5_000_000_000, 500_000),
call: add_registrar_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -117,7 +116,6 @@ fn relay_commands_add_registrar_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(5_000_000_000, 500_000),
call: add_registrar_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -204,7 +202,6 @@ fn relay_commands_kill_identity() {
// Making the weight's ref time any lower will prevent the XCM from triggering
// execution of the intended extrinsic on the People chain - beware of spurious
// test failure due to this.
require_weight_at_most: Weight::from_parts(11_000_000_000, 500_000),
call: kill_identity_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -268,7 +265,6 @@ fn relay_commands_kill_identity_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(11_000_000_000, 500_000),
call: kill_identity_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -334,7 +330,6 @@ fn relay_commands_add_remove_username_authority() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: add_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -424,7 +419,6 @@ fn relay_commands_add_remove_username_authority() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: remove_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -491,7 +485,6 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: add_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -543,7 +536,6 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind: OriginKind::SovereignAccount,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: remove_username_authority.encode().into(),
}
]))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ fn relay_commands_add_registrar() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(5_000_000_000, 500_000),
call: add_registrar_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -118,7 +117,6 @@ fn relay_commands_add_registrar_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(5_000_000_000, 500_000),
call: add_registrar_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -209,10 +207,6 @@ fn relay_commands_kill_identity() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
// Making the weight's ref time any lower will prevent the XCM from triggering
// execution of the intended extrinsic on the People chain - beware of spurious
// test failure due to this.
require_weight_at_most: Weight::from_parts(11_000_000_000, 500_000),
call: kill_identity_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -274,7 +268,6 @@ fn relay_commands_kill_identity_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(11_000_000_000, 500_000),
call: kill_identity_call.encode().into(),
}
]))),
Expand Down Expand Up @@ -325,7 +318,6 @@ fn relay_commands_add_remove_username_authority() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: add_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -415,7 +407,6 @@ fn relay_commands_add_remove_username_authority() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: remove_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -482,7 +473,6 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: add_username_authority.encode().into(),
}
]))),
Expand Down Expand Up @@ -534,7 +524,6 @@ fn relay_commands_add_remove_username_authority_wrong_origin() {
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind: OriginKind::SovereignAccount,
require_weight_at_most: Weight::from_parts(500_000_000, 500_000),
call: remove_username_authority.encode().into(),
}
]))),
Expand Down

0 comments on commit 3308e96

Please sign in to comment.