Closed sideninja closed 1 month ago
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
Files ignored due to path filters (2)
* `go.sum` is excluded by `!**/*.sum` * `tests/go.sum` is excluded by `!**/*.sum`You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes introduced in this update enhance the StorageReceipt
struct by adding new fields for Coinbase
and Random
, improving the capture of transaction context for blockchain operations. Additionally, the go.mod
file has been updated to upgrade several dependencies, ensuring the project remains secure and efficient. These modifications collectively enrich the data handled during transaction processes and maintain the project's dependency integrity.
Files | Change Summary |
---|---|
go.mod |
Updated module versions for dependencies, including github.com/onflow/flow-go , golang.org/x/sync , and others. |
models/receipt.go , models/transaction.go |
Added Coinbase and Random fields to StorageReceipt struct and updated constructor; modified decodeTransactionEvent to include new parameters. |
sequenceDiagram
participant A as Transaction Event
participant B as decodeTransactionEvent
participant C as StorageReceipt
A->>B: Trigger decodeTransactionEvent
B->>C: Create StorageReceipt with Coinbase and Random
B->>A: Return Transaction and StorageReceipt
Objective | Addressed | Explanation |
---|---|---|
Add Random value and Coinbase address (#458) | ✅ | |
Ensure all block context information is indexed | ✅ |
🐰 In a world of code, I hop with glee,
New fields added, just for me!
Coinbase and Random, what a delight,
Our transactions now shine so bright!
Dependencies updated, all secure,
A happy rabbit, that's for sure! 🥕✨
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?
Closes: #458
Description
This adds extended fields in the tx event that contain missing block context data.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Coinbase
andRandom
to enhance theStorageReceipt
structure, improving data encapsulation for blockchain transactions.Bug Fixes