mobile: fix receipt encoding to json (#24701)
This commit is contained in:
parent
4024c1e869
commit
fb801d8837
|
@ -358,7 +358,7 @@ func NewReceiptFromJSON(data string) (*Receipt, error) {
|
||||||
|
|
||||||
// EncodeJSON encodes a transaction receipt into a JSON data dump.
|
// EncodeJSON encodes a transaction receipt into a JSON data dump.
|
||||||
func (r *Receipt) EncodeJSON() (string, error) {
|
func (r *Receipt) EncodeJSON() (string, error) {
|
||||||
data, err := rlp.EncodeToBytes(r.receipt)
|
data, err := json.Marshal(r.receipt)
|
||||||
return string(data), err
|
return string(data), err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue