[#732] neofs-adm: fetch single accounts during the initialization

Simplify code and perform error checking before the actual work.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-07-30 14:26:44 +03:00 committed by Alex Vanin
parent 018256def8
commit 8e71773c4a
6 changed files with 19 additions and 41 deletions

View file

@ -122,12 +122,7 @@ func (c *initializeContext) deployContracts() error {
var keysParam []smartcontract.Parameter
// alphabet contracts should be deployed by individual nodes to get different hashes.
for i, w := range c.Wallets {
acc, err := getWalletAccount(w, singleAccountName)
if err != nil {
return err
}
for i, acc := range c.Accounts {
cs, err := c.readContract(alphabetContract)
if err != nil {
return err