Skip to content

Commit

Permalink
neofs-adm: init and update-contracts are the only commands for wallet…
Browse files Browse the repository at this point in the history
…s creation (#2515)

added checks for commands before wallet creation

Closes #2134.
  • Loading branch information
roman-khimov authored Aug 17, 2023
2 parents 66bc5b2 + 01a1c99 commit e1d4532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ minor release, the component will be purged, so be prepared (see `Updating` sect
- Storage node no longer ignores unhealthy shards on startup (#2464)
- Processing of status errors returned by API client from NeoFS SDK RC-9 (#2465)
- `neofs-lens write-cache list` command duplication (#2505)
- `neofs-adm` works with contract wallet in `init` and `update-contracts` commands only (#2134)

### Removed
- Deprecated `morph.rpc_endpoint` SN and `morph.endpoint.client` IR config sections (#2400)
Expand Down
2 changes: 1 addition & 1 deletion cmd/neofs-adm/internal/modules/morph/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func newInitializeContext(cmd *cobra.Command, v *viper.Viper) (*initializeContex
}

var w *wallet.Wallet
if cmd.Name() != "deploy" {
if cmd.Name() == "update-contracts" || cmd.Name() == "init" {
w, err = openContractWallet(v, cmd, walletDir)
if err != nil {
return nil, err
Expand Down

0 comments on commit e1d4532

Please sign in to comment.