[#425] cli: Support latest changes from API library

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-03-15 14:23:04 +03:00 committed by Alex Vanin
parent e6cde0ab28
commit 6204ca8308
5 changed files with 43 additions and 50 deletions

View file

@ -177,7 +177,7 @@ func getSDKClient() (*client.Client, error) {
return nil, errInvalidEndpoint
}
return client.New(key, client.WithAddress(ipAddr))
return client.New(client.WithAddress(ipAddr), client.WithDefaultPrivateKey(key))
}
func getTTL() uint32 {