mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
'sanitize' JSON input
Co-Authored-By: gballet <gballet@gmail.com>
This commit is contained in:
parent
3b3e1bc07e
commit
df5409c952
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ func (path DerivationPath) String() string {
|
|||
}
|
||||
|
||||
func (path DerivationPath) MarshalJSON() ([]byte, error) {
|
||||
return []byte(fmt.Sprintf("\"%s\"", path.String())), nil
|
||||
return json.Marshal(fmt.Sprintf("\"%s\"", path.String()))
|
||||
}
|
||||
|
||||
func (path *DerivationPath) UnmarshalJSON(b []byte) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue