Skip to content

Commit f2cdf1a

Browse files
committed
use RuntimeOrigin in-place of Origin
1 parent f749202 commit f2cdf1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frame/staking/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,7 +5832,7 @@ fn bond_restriction_works() {
58325832
start_session(2);
58335833
assert_err!(
58345834
Staking::bond(
5835-
Origin::signed(RESTRICTED_ACCOUNT),
5835+
RuntimeOrigin::signed(RESTRICTED_ACCOUNT),
58365836
1,
58375837
1000,
58385838
RewardDestination::Controller
@@ -5845,7 +5845,7 @@ fn bond_restriction_works() {
58455845

58465846
// Using unrestricted account should not fail
58475847
assert_ok!(Staking::bond(
5848-
Origin::signed(RESTRICTED_ACCOUNT + 1),
5848+
RuntimeOrigin::signed(RESTRICTED_ACCOUNT + 1),
58495849
1,
58505850
1000,
58515851
RewardDestination::Controller

0 commit comments

Comments
 (0)