From bcca0b399d8b8b3f0ef438c4ebc39f4f4359da26 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 27 Mar 2023 09:33:03 +0200 Subject: [PATCH] Add PreviewPrivacy to CreateAccountRequest --- VERSION | 2 +- api/geth_backend.go | 1 + protocol/requests/create_account.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 195e40a3a..b31052f33 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.140.1 +0.140.2 diff --git a/api/geth_backend.go b/api/geth_backend.go index eecbc792b..961a589fd 100644 --- a/api/geth_backend.go +++ b/api/geth_backend.go @@ -774,6 +774,7 @@ func (b *GethStatusBackend) generateOrImportAccount(mnemonic string, request *re return err } settings.DisplayName = request.DisplayName + settings.PreviewPrivacy = request.PreviewPrivacy // If restoring an account, we don't set the mnemonic if mnemonic == "" { diff --git a/protocol/requests/create_account.go b/protocol/requests/create_account.go index 097e216b8..a25857899 100644 --- a/protocol/requests/create_account.go +++ b/protocol/requests/create_account.go @@ -29,6 +29,7 @@ type CreateAccount struct { LogLevel *string `json:"logLevel"` LogFilePath string `json:"logFilePath"` LogEnabled bool `json:"logEnabled"` + PreviewPrivacy bool `json:"previewPrivacy"` } func (c *CreateAccount) Validate() error {