mobile: fix receipt encoding to json (#24701)

This commit is contained in:
Nikita Kozhemyakin 2022-04-25 10:35:04 +03:00 committed by zjubfd
parent 30c695c5e2
commit 6aae1bcc81

@ -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
}