Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neofs-adm: init and update-contracts are the only commands for wallets creation #2515

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

AliceInHunterland
Copy link
Contributor

added checks for commands before wallet creation

Closes #2134.

@AliceInHunterland AliceInHunterland force-pushed the bugfix/2134-neofs-adm-contract-wallet branch 3 times, most recently from 2b66714 to 4c8add3 Compare August 16, 2023 15:02
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely we also need to limit newInitializeContext to call openContractWallet only when this wallet is really neded, that's not the case for set-config, for example (check ContractWallet uses).

cmd/neofs-adm/internal/modules/morph/generate.go Outdated Show resolved Hide resolved
@AliceInHunterland AliceInHunterland force-pushed the bugfix/2134-neofs-adm-contract-wallet branch 2 times, most recently from 856e9d8 to cdf932e Compare August 17, 2023 13:03
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #2515 (0477be2) into master (66bc5b2) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 0477be2 differs from pull request most recent head 01a1c99. Consider uploading reports for the commit 01a1c99 to get more accurate results

@@           Coverage Diff           @@
##           master    #2515   +/-   ##
=======================================
  Coverage   29.68%   29.69%           
=======================================
  Files         404      404           
  Lines       30711    30711           
=======================================
+ Hits         9117     9119    +2     
+ Misses      20825    20824    -1     
+ Partials      769      768    -1     
Files Changed Coverage Δ
cmd/neofs-adm/internal/modules/morph/initialize.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@AliceInHunterland AliceInHunterland force-pushed the bugfix/2134-neofs-adm-contract-wallet branch 7 times, most recently from 0173ee5 to b75460a Compare August 17, 2023 14:18
The only command that can create alphabet wallets is init.
The only commands that can create contract wallet are init and update-contracts.

Closes #2134.

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
@AliceInHunterland AliceInHunterland force-pushed the bugfix/2134-neofs-adm-contract-wallet branch from b75460a to 01a1c99 Compare August 17, 2023 14:18
@roman-khimov roman-khimov merged commit e1d4532 into master Aug 17, 2023
8 checks passed
@roman-khimov roman-khimov deleted the bugfix/2134-neofs-adm-contract-wallet branch August 17, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

neofs-adm: do not create contract wallet in set-config
3 participants