From fb801d8837aebfb2047975fa47eeae891b6901a1 Mon Sep 17 00:00:00 2001 From: Nikita Kozhemyakin Date: Mon, 25 Apr 2022 10:35:04 +0300 Subject: [PATCH] mobile: fix receipt encoding to json (#24701) --- mobile/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/types.go b/mobile/types.go index d1427ac11..a224f12ab 100644 --- a/mobile/types.go +++ b/mobile/types.go @@ -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 }