Commit df5409c9 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by Guillaume Ballet

'sanitize' JSON input

Co-Authored-By: 's avatargballet <gballet@gmail.com>
parent 3b3e1bc0
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment