Add PreviewPrivacy to CreateAccountRequest

This commit is contained in:
Roman Volosovskyi 2023-03-27 09:33:03 +02:00
parent a1e7eed141
commit bcca0b399d
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
3 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
0.140.1
0.140.2

View File

@ -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 == "" {

View File

@ -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 {