This commit is contained in:
Łukasz Magiera 2020-12-17 16:45:41 +01:00
parent 06d3892e38
commit ab5345860c
2 changed files with 4 additions and 5 deletions

View File

@ -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)
}

View File

@ -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 {