diff --git a/cmd/lotus-wallet/interactive.go b/cmd/lotus-wallet/interactive.go index f4436c79e..7170d228d 100644 --- a/cmd/lotus-wallet/interactive.go +++ b/cmd/lotus-wallet/interactive.go @@ -31,7 +31,7 @@ type InteractiveWallet struct { lk sync.Mutex apiGetter func() (api.FullNode, jsonrpc.ClientCloser, error) - under api.WalletAPI + under api.WalletAPI } func (c *InteractiveWallet) WalletNew(ctx context.Context, typ types.KeyType) (address.Address, error) { @@ -190,7 +190,6 @@ func (c *InteractiveWallet) WalletDelete(ctx context.Context, addr address.Addre return err } - return c.under.WalletDelete(ctx, addr) } diff --git a/cmd/lotus-wallet/main.go b/cmd/lotus-wallet/main.go index 9ce50b74d..f41e3f426 100644 --- a/cmd/lotus-wallet/main.go +++ b/cmd/lotus-wallet/main.go @@ -77,11 +77,11 @@ var runCmd = &cli.Command{ Usage: "use a ledger device instead of an on-disk wallet", }, &cli.BoolFlag{ - Name: "interactive", + Name: "interactive", Usage: "prompt before performing actions (DO NOT USE FOR MINER WORKER ADDRESS)", }, &cli.BoolFlag{ - Name: "offline", + Name: "offline", Usage: "don't query chain state in interactive mode", }, }, @@ -158,7 +158,7 @@ var runCmd = &cli.Command{ } w = &InteractiveWallet{ - under: w, + under: w, apiGetter: ag, } } else {