Skip to content

Commit

Permalink
Require stash instead of controller (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentunn authored Aug 16, 2023
1 parent 265fb09 commit 1669e17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ class StakeActionsValidationsModule {
@Named(SYSTEM_MANAGE_STAKING_REBAG)
@Provides
fun provideRebagValidationSystem(
@Named(BALANCE_REQUIRED_CONTROLLER)
controllerRequiredValidation: MainStakingAccountRequiredValidation
@Named(BALANCE_REQUIRED_STASH)
stashRequiredValidation: MainStakingAccountRequiredValidation
): StakeActionsValidationSystem = ValidationSystem {
validate(controllerRequiredValidation)
validate(stashRequiredValidation)
}

@FeatureScope
Expand Down

0 comments on commit 1669e17

Please sign in to comment.