Add delete functionality to the wallet

This commit is contained in:
Aayush Rajasekaran
2020-06-07 19:36:01 -04:00
parent 9e2603c1bf
commit 49b27da426
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)
}