diff --git a/api/api_full.go b/api/api_full.go index 09c69a1ba..410d37087 100644 --- a/api/api_full.go +++ b/api/api_full.go @@ -162,7 +162,7 @@ type FullNode interface { WalletNew(context.Context, crypto.SigType) (address.Address, error) // WalletHas indicates whether the given address is in the wallet. WalletHas(context.Context, address.Address) (bool, error) - // WalletHas indicates whether the given address is in the wallet. + // WalletList lists all the addresses in the wallet. WalletList(context.Context) ([]address.Address, error) // WalletBalance returns the balance of the given address at the current head of the chain. WalletBalance(context.Context, address.Address) (types.BigInt, error) diff --git a/cli/client.go b/cli/client.go index ebcf9a56b..4093d4f49 100644 --- a/cli/client.go +++ b/cli/client.go @@ -84,6 +84,11 @@ var clientImportCmd = &cli.Command{ } defer closer() ctx := ReqContext(cctx) + + if cctx.NArg() != 1 { + return xerrors.New("expected input path as the only arg") + } + absPath, err := filepath.Abs(cctx.Args().First()) if err != nil { return err