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
|
return err
|
||||||
}
|
}
|
||||||
settings.DisplayName = request.DisplayName
|
settings.DisplayName = request.DisplayName
|
||||||
|
settings.PreviewPrivacy = request.PreviewPrivacy
|
||||||
|
|
||||||
// If restoring an account, we don't set the mnemonic
|
// If restoring an account, we don't set the mnemonic
|
||||||
if mnemonic == "" {
|
if mnemonic == "" {
|
||||||
|
|
|
@ -29,6 +29,7 @@ type CreateAccount struct {
|
||||||
LogLevel *string `json:"logLevel"`
|
LogLevel *string `json:"logLevel"`
|
||||||
LogFilePath string `json:"logFilePath"`
|
LogFilePath string `json:"logFilePath"`
|
||||||
LogEnabled bool `json:"logEnabled"`
|
LogEnabled bool `json:"logEnabled"`
|
||||||
|
PreviewPrivacy bool `json:"previewPrivacy"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CreateAccount) Validate() error {
|
func (c *CreateAccount) Validate() error {
|
||||||
|
|
Loading…
Reference in New Issue