diff options
Diffstat (limited to 'signer/core')
-rw-r--r-- | signer/core/api.go | 6 | ||||
-rw-r--r-- | signer/core/signed_data.go | 2 | ||||
-rw-r--r-- | signer/core/types.go | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/signer/core/api.go b/signer/core/api.go index 30888f842..837b7266c 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -236,12 +236,6 @@ type ( Message struct { Text string `json:"text"` } - PasswordRequest struct { - Prompt string `json:"prompt"` - } - PasswordResponse struct { - Password string `json:"password"` - } StartupInfo struct { Info map[string]interface{} `json:"info"` } diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go index e481f5e1d..9df39ef59 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -250,7 +250,7 @@ func (api *SignerAPI) determineSignatureFormat(ctx context.Context, contentType message := []*NameValueType{ { Name: "message", - Typ: "text/plain", + Typ: accounts.MimetypeTextPlain, Value: msg, }, } diff --git a/signer/core/types.go b/signer/core/types.go index c1d3b9bf8..8743746ba 100644 --- a/signer/core/types.go +++ b/signer/core/types.go @@ -75,7 +75,7 @@ type SendTxArgs struct { Nonce hexutil.Uint64 `json:"nonce"` // We accept "data" and "input" for backwards-compatibility reasons. Data *hexutil.Bytes `json:"data"` - Input *hexutil.Bytes `json:"input"` + Input *hexutil.Bytes `json:"input,omitempty"` } func (args SendTxArgs) String() string { |