mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-29 21:55:49 +00:00
refactor: settings updated
This commit is contained in:
parent
9ada3bf23c
commit
e1ba033633
@ -6,5 +6,6 @@ export response_type
|
||||
proc getSettings*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
return core.callPrivateRPC("settings_getSettings")
|
||||
|
||||
proc saveSettings*(key: string, value: string | JsonNode | bool | int) {.raises: [Exception].} =
|
||||
discard core.callPrivateRPC("settings_saveSetting", %* [key, value])
|
||||
proc saveSettings*(key: string, value: string | JsonNode | bool | int): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [key, value]
|
||||
result = core.callPrivateRPC("settings_saveSetting", payload)
|
Loading…
x
Reference in New Issue
Block a user