Merge pull request #1946 from filecoin-project/asr/walletdelete

Add delete functionality to the wallet
This commit is contained in:
Łukasz Magiera
2020-06-08 13:27:42 +02:00
committed by GitHub
5 changed files with 58 additions and 4 deletions
+4
View File
@@ -76,3 +76,7 @@ func (a *WalletAPI) WalletExport(ctx context.Context, addr address.Address) (*ty
func (a *WalletAPI) WalletImport(ctx context.Context, ki *types.KeyInfo) (address.Address, error) {
return a.Wallet.Import(ki)
}
func (a *WalletAPI) WalletDelete(ctx context.Context, addr address.Address) error {
return a.Wallet.DeleteKey(addr)
}