Closed QuantumExplorer closed 1 week ago
The changes introduce a new error variant, GroveDBError
, to the Error
enum in the error.rs
file, enhancing error handling for GroveDB-related issues. This variant includes fields for proof_bytes
, height
, time_ms
, and an error description. Additionally, the error handling in the maybe_from_proof_with_metadata
methods across various implementations of the FromProof
trait has been refined to provide more specific error context. Import statements have also been updated, but no existing error variants or public entity signatures were altered.
File Path | Change Summary |
---|---|
packages/rs-drive-proof-verifier/src/error.rs |
Added new error variant GroveDBError { proof_bytes: Vec<u8>, height: u64, time_ms: u64, error: String } to Error enum. |
packages/rs-drive-proof-verifier/src/proof.rs |
Updated error handling in maybe_from_proof_with_metadata methods to differentiate GroveDB errors from others. Renamed metadata to mtd for consistency. |
WithdrawFromIdentity
trait, enhancing error reporting similar to the GroveDBError
variant.fetch_many
method to include metadata and proof, related to the new error handling capabilities introduced in the main PR.enhancement
, rs-sdk
In the garden of code, a new error grows,
GroveDBError, with bytes it bestows.
With clarity now, our errors will sing,
In the world of proofs, let the right messages spring!
🐇✨
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?
Issue being fixed or feature implemented
Proof errors in grovedb were not giving the client the actual proof, this fixes that.
What was done?
Returning a different error for proof errors.
How Has This Been Tested?
Not tested, but simple change.
Breaking Changes
Not breaking
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
GroveDBError
, to enhance error handling related to GroveDB operations.Bug Fixes
maybe_from_proof_with_metadata
methods for better clarity and context in error messages.