[#1687] go.mod: Update neofs-sdk-go

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-22 14:04:00 +03:00 committed by Pavel Karpy
parent d40ed00438
commit 0720d96c9d
7 changed files with 20 additions and 43 deletions

View file

@ -58,11 +58,7 @@ func initAccountingBalanceCmd() {
ff.String(ownerFlag, "", "owner of balance account (omit to use owner from private key)")
}
func prettyPrintDecimal(cmd *cobra.Command, decimal *accounting.Decimal) {
if decimal == nil {
return
}
func prettyPrintDecimal(cmd *cobra.Command, decimal accounting.Decimal) {
if viper.GetBool(commonflags.Verbose) {
cmd.Println("value:", decimal.Value())
cmd.Println("precision:", decimal.Precision())

View file

@ -30,7 +30,7 @@ var getExtendedACLCmd = &cobra.Command{
if containerPathTo == "" {
cmd.Println("eACL: ")
common.PrettyPrintJSON(cmd, eaclTable, "eACL")
common.PrettyPrintJSON(cmd, &eaclTable, "eACL")
return
}

View file

@ -63,7 +63,8 @@ Container ID in EACL table will be substituted with ID from the CLI.`,
res, err := internalclient.EACL(getEACLPrm)
if err == nil {
// compare binary values because EACL could have been set already
got, err := res.EACL().Marshal()
table := res.EACL()
got, err := table.Marshal()
if err != nil {
continue
}