forked from TrueCloudLab/frostfs-node
[#1606] Remove deprecated functions
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
6cc180391e
commit
4a8dfd0ce4
2 changed files with 1 additions and 5 deletions
|
@ -44,11 +44,10 @@ func generateAlphabetCreds(cmd *cobra.Command, args []string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
w, err := initializeContractWallet(v, walletDir)
|
_, err = initializeContractWallet(v, walletDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
w.Close()
|
|
||||||
|
|
||||||
cmd.Println("size:", size)
|
cmd.Println("size:", size)
|
||||||
cmd.Println("alphabet-wallets:", walletDir)
|
cmd.Println("alphabet-wallets:", walletDir)
|
||||||
|
@ -111,7 +110,6 @@ func initializeWallets(v *viper.Viper, walletDir string, size int) ([]string, er
|
||||||
if err := w.SavePretty(); err != nil {
|
if err := w.SavePretty(); err != nil {
|
||||||
return nil, fmt.Errorf("can't save wallet: %w", err)
|
return nil, fmt.Errorf("can't save wallet: %w", err)
|
||||||
}
|
}
|
||||||
w.Close()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return passwords, nil
|
return passwords, nil
|
||||||
|
|
|
@ -16,8 +16,6 @@ func LoadAccount(path, addr, password string) (*wallet.Account, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
defer w.Close()
|
|
||||||
|
|
||||||
var h util.Uint160
|
var h util.Uint160
|
||||||
if addr == "" {
|
if addr == "" {
|
||||||
h = w.GetChangeAddress()
|
h = w.GetChangeAddress()
|
||||||
|
|
Loading…
Reference in a new issue