mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
darkfid: add the option to import keypair from json file
This commit is contained in:
@@ -21,7 +21,7 @@ pub enum ErrorCode {
|
||||
InternalError,
|
||||
KeyGenError,
|
||||
GetAddressesError,
|
||||
CreateFile,
|
||||
ImportAndExportFile,
|
||||
SetDefaultAddress,
|
||||
InvalidAmountParam,
|
||||
InvalidNetworkParam,
|
||||
@@ -41,7 +41,7 @@ impl ErrorCode {
|
||||
ErrorCode::InternalError => -32603,
|
||||
ErrorCode::KeyGenError => -32002,
|
||||
ErrorCode::GetAddressesError => -32003,
|
||||
ErrorCode::CreateFile => -32004,
|
||||
ErrorCode::ImportAndExportFile => -32004,
|
||||
ErrorCode::SetDefaultAddress => -32005,
|
||||
ErrorCode::InvalidAmountParam => -32010,
|
||||
ErrorCode::InvalidNetworkParam => -32011,
|
||||
@@ -61,7 +61,7 @@ impl ErrorCode {
|
||||
ErrorCode::InternalError => "Internal error",
|
||||
ErrorCode::KeyGenError => "Key gen error",
|
||||
ErrorCode::GetAddressesError => "get addresses error",
|
||||
ErrorCode::CreateFile => "error creating a file",
|
||||
ErrorCode::ImportAndExportFile => "error import/export a file",
|
||||
ErrorCode::SetDefaultAddress => "error set default address",
|
||||
ErrorCode::InvalidAmountParam => "Invalid amount param",
|
||||
ErrorCode::InvalidNetworkParam => "Invalid network param",
|
||||
|
||||
Reference in New Issue
Block a user