Add PreviewPrivacy to CreateAccountRequest
This commit is contained in:
parent
a1e7eed141
commit
bcca0b399d
|
@ -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 == "" {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue