forked from cerc-io/laconicd-deprecated
rpc: personal_initializeWallet (#740)
* Problem: need to add JSON-RPC endpoint personal_initializeWallet Closes #738 * this is aimed at smartcard wallet which is not supported yet. * changelog and not skip for expecting error * fix personal_test error message assertion * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
a3f1d8d89d
commit
a874c1e1ca
@@ -230,3 +230,11 @@ func (api *PrivateAccountAPI) Unpair(_ context.Context, url, pin string) error {
|
||||
// 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")
|
||||
}
|
||||
|
||||
// InitializeWallet initializes a new wallet at the provided URL, by generating and returning a new private key.
|
||||
func (api *PrivateAccountAPI) InitializeWallet(_ context.Context, url string) (string, error) {
|
||||
api.logger.Debug("personal_initializeWallet", "url", url)
|
||||
api.logger.Info("personal_initializeWallet 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