mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-01 17:27:53 +00:00
fix: saveAccounts
status-go endpoint change handling
This commit is contained in:
parent
9fe3456e8f
commit
ec17309348
@ -66,7 +66,7 @@ proc updateAccount*(name, keyPairName, address, path: string, lastUsedDerivation
|
||||
keyUid, accountType, color, emoji: string, walletDefaultAccount: bool, chatDefaultAccount: bool):
|
||||
RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [
|
||||
[{
|
||||
{
|
||||
"address": address,
|
||||
"key-uid": keyUid,
|
||||
"wallet": walletDefaultAccount,
|
||||
@ -84,9 +84,9 @@ proc updateAccount*(name, keyPairName, address, path: string, lastUsedDerivation
|
||||
#"removed" present on the status-go side, used for synchronization, no need to set it here
|
||||
"keypair-name": keyPairName,
|
||||
"last-used-derivation-index": lastUsedDerivationIndex
|
||||
}]
|
||||
}
|
||||
]
|
||||
return core.callPrivateRPC("accounts_saveAccounts", payload)
|
||||
return core.callPrivateRPC("accounts_saveAccount", payload)
|
||||
|
||||
proc generateAddresses*(paths: seq[string]): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* {
|
||||
|
2
vendor/status-go
vendored
2
vendor/status-go
vendored
@ -1 +1 @@
|
||||
Subproject commit 4ef5eba6b5041eaa80fba6ee9774f41a2a78b219
|
||||
Subproject commit 34badf2405043069ad1ee5a303b2a434c1fad53c
|
Loading…
x
Reference in New Issue
Block a user