mobile: fix receipt encoding to json (#24701)

pull/24760/head
Nikita Kozhemyakin 3 years ago committed by GitHub
parent 4024c1e869
commit fb801d8837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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
}

Loading…
Cancel
Save