Skip to content

Commit

Permalink
mobile: fix receipt encoding to json (#24701)
Browse files Browse the repository at this point in the history
  • Loading branch information
enginegl authored Apr 25, 2022
1 parent 4024c1e commit fb801d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func NewReceiptFromJSON(data string) (*Receipt, error) {

// EncodeJSON encodes a transaction receipt into a JSON data dump.
func (r *Receipt) EncodeJSON() (string, error) {
data, err := rlp.EncodeToBytes(r.receipt)
data, err := json.Marshal(r.receipt)
return string(data), err
}

Expand Down

0 comments on commit fb801d8

Please sign in to comment.