forked from TrueCloudLab/frostfs-node
[#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:
parent
018256def8
commit
8e71773c4a
6 changed files with 19 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue