mobile: fix receipt encoding to json (#24701)

This commit is contained in:
Nikita Kozhemyakin 2022-04-25 10:35:04 +03:00 committed by GitHub
parent 4024c1e869
commit fb801d8837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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