[#1606] Remove deprecated functions

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-07-18 11:36:36 +03:00 committed by fyrchik
parent 6cc180391e
commit 4a8dfd0ce4
2 changed files with 1 additions and 5 deletions

View file

@ -44,11 +44,10 @@ func generateAlphabetCreds(cmd *cobra.Command, args []string) error {
return err
}
w, err := initializeContractWallet(v, walletDir)
_, err = initializeContractWallet(v, walletDir)
if err != nil {
return err
}
w.Close()
cmd.Println("size:", size)
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 {
return nil, fmt.Errorf("can't save wallet: %w", err)
}
w.Close()
}
return passwords, nil

View file

@ -16,8 +16,6 @@ func LoadAccount(path, addr, password string) (*wallet.Account, error) {
return nil, err
}
defer w.Close()
var h util.Uint160
if addr == "" {
h = w.GetChangeAddress()