forked from cerc-io/laconicd-deprecated
rpc: personal_unpair (#733)
* Problem: need to add rpc endpoint personal_unpair Closes #730 * this is aimed at smartcard wallet which is not supported yet. * will return unsupported error now. * Update rpc/ethereum/namespaces/personal/api.go * add changelog entry and use errors.Is Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
Tomas Tauber
parent
d647988ad5
commit
a3f1d8d89d
@@ -222,3 +222,11 @@ func (api *PrivateAccountAPI) EcRecover(_ context.Context, data, sig hexutil.Byt
|
||||
|
||||
return crypto.PubkeyToAddress(*pubkey), nil
|
||||
}
|
||||
|
||||
// Unpair deletes a pairing between wallet and ethermint.
|
||||
func (api *PrivateAccountAPI) Unpair(_ context.Context, url, pin string) error {
|
||||
api.logger.Debug("personal_unpair", "url", url, "pin", pin)
|
||||
api.logger.Info("personal_unpair for smartcard wallet not supported")
|
||||
// TODO: Smartcard wallet not supported yet, refer to: https://github.com/ethereum/go-ethereum/blob/master/accounts/scwallet/README.md
|
||||
return fmt.Errorf("smartcard wallet not supported yet")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user