Skip to content

Commit

Permalink
use RuntimeOrigin in-place of Origin
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Mar 1, 2023
1 parent f749202 commit f2cdf1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5832,7 +5832,7 @@ fn bond_restriction_works() {
start_session(2);
assert_err!(
Staking::bond(
Origin::signed(RESTRICTED_ACCOUNT),
RuntimeOrigin::signed(RESTRICTED_ACCOUNT),
1,
1000,
RewardDestination::Controller
Expand All @@ -5845,7 +5845,7 @@ fn bond_restriction_works() {

// Using unrestricted account should not fail
assert_ok!(Staking::bond(
Origin::signed(RESTRICTED_ACCOUNT + 1),
RuntimeOrigin::signed(RESTRICTED_ACCOUNT + 1),
1,
1000,
RewardDestination::Controller
Expand Down

0 comments on commit f2cdf1a

Please sign in to comment.