Small fixes for frostfs-adm morph deposit-notary #1582

Merged
fyrchik merged 3 commits from fyrchik/frostfs-node:adm-deposit into master 2024-12-25 17:37:31 +00:00
Showing only changes of commit b5b4f78b49 - Show all commits

View file

@ -41,7 +41,8 @@ func depositNotary(cmd *cobra.Command, _ []string) error {
}
accHash := w.GetChangeAddress()
if addr, err := cmd.Flags().GetString(walletAccountFlag); err == nil {
addr, _ := cmd.Flags().GetString(walletAccountFlag)
if addr != "" {
accHash, err = address.StringToUint160(addr)
if err != nil {
return fmt.Errorf("invalid address: %s", addr)