Skip to content

Commit

Permalink
cr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dusan-maksimovic committed Sep 11, 2023
1 parent 05b8f25 commit 18372dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions command/rootchain/deploy/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,5 @@ func (ip *deployParams) validateFlags() error {
return errors.New("stake token address is not provided")
}

if err := helper.ValidateProxyContractsAdmin(ip.proxyContractsAdmin); err != nil {
return err
}

return nil
return helper.ValidateProxyContractsAdmin(ip.proxyContractsAdmin)
}
5 changes: 2 additions & 3 deletions command/rootchain/supernet/stakemanager/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ func (s *stakeManagerDeployParams) validateFlags() error {

// validate jsonrpc address
_, err := helper.ParseJSONRPCAddress(s.jsonRPC)

if err := helper.ValidateProxyContractsAdmin(s.proxyContractsAdmin); err != nil {
if err != nil {
return err
}

return err
return helper.ValidateProxyContractsAdmin(s.proxyContractsAdmin)
}

0 comments on commit 18372dc

Please sign in to comment.