diff --git a/cli/wallet/nep11.go b/cli/wallet/nep11.go index 82154e056..3b81dfc39 100644 --- a/cli/wallet/nep11.go +++ b/cli/wallet/nep11.go @@ -5,16 +5,20 @@ import ( "errors" "fmt" "math/big" + "strconv" "github.com/nspcc-dev/neo-go/cli/cmdargs" "github.com/nspcc-dev/neo-go/cli/flags" "github.com/nspcc-dev/neo-go/cli/input" "github.com/nspcc-dev/neo-go/cli/options" "github.com/nspcc-dev/neo-go/cli/paramcontext" + "github.com/nspcc-dev/neo-go/pkg/config" "github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" + "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" "github.com/nspcc-dev/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" @@ -23,6 +27,7 @@ import ( ) func newNEP11Commands() []cli.Command { + maxIters := strconv.Itoa(config.DefaultMaxIteratorResultItems) tokenAddressFlag := flags.AddressFlag{ Name: "token", Usage: "Token contract address or hash in LE", @@ -119,7 +124,7 @@ func newNEP11Commands() []cli.Command { }, { Name: "ownerOfD", - Usage: "print set of owners of divisible NEP-11 token with the specified ID (the default MaxIteratorResultItems will be printed at max)", + Usage: "print set of owners of divisible NEP-11 token with the specified ID (" + maxIters + " will be printed at max)", UsageText: "ownerOfD --rpc-endpoint --timeout