Closed sideninja closed 2 months ago
The changes introduce enhancements to the ReceiptsFromBytes
function in the models/receipt.go
file, adding support for legacy receipt formats. A new helper function, legacyReceiptFromBytes
, is implemented to decode these formats if the initial decoding fails. Additionally, a new struct, receiptV0
, is defined to facilitate the mapping of legacy receipt fields to the current structure, ensuring compatibility with older data formats.
Files | Change Summary |
---|---|
models/receipt.go | Modified ReceiptsFromBytes to include legacy decoding logic; added legacyReceiptFromBytes function; introduced receiptV0 struct for legacy receipt mapping. |
🐇 In the meadow where receipts lay,
A new path opens, bright as day.
With legacy tales now decoded right,
Our data dances in the light!
Hooray for changes, old and new,
A hop, a skip, and joy ensues! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This was merged too early, the original PR was not released under flow-go v0.37.0. We need to wait for next flow-go release before merging.
Reverts onflow/flow-evm-gateway#485
Summary by CodeRabbit
New Features
Bug Fixes