fix(sdk): remove unused Sdk::parse_proof and Sdk::parse_proof_with_metadata#3141
Conversation
…_metadata These methods became dead code when their last external caller in fetch_many.rs was removed. Only parse_proof_with_metadata_and_proof is used by the fetch/fetch_many paths now.
📝 WalkthroughWalkthroughTwo internal helper methods ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PastaPastaPasta
left a comment
There was a problem hiding this comment.
This fixes a real CI issue which is currently "blocking" for me/claw. I've reviewed the changes. This is not a breaking change, as this is not exposed publicly. I believe this is safe to merge.
… parse_proof method The revert commit d820fe2 brought back a custom Document FetchMany::fetch_many implementation that called Sdk::parse_proof, which was removed in #3141. This caused compilation failures across dash-sdk, wasm-sdk, rs-sdk-ffi, and iOS builds. Remove the custom override entirely so the trait's default fetch_many_with_metadata_and_proof implementation (which correctly uses parse_proof_with_metadata_and_proof) is used instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Remove unused
Sdk::parse_proofandSdk::parse_proof_with_metadatamethods frompackages/rs-sdk/src/sdk.rs.These two methods became dead code — their last external caller (in
fetch_many.rs) was removed when the fetch paths were refactored to callparse_proof_with_metadata_and_proofdirectly. The methods only called each other internally, with no external entry points remaining.The mock's
MockDashPlatformSdk::parse_proof_with_metadata(inmock/sdk.rs) is a separate method and is unaffected.Changes
Sdk::parse_proof(wrapper that discarded metadata)Sdk::parse_proof_with_metadata(wrapper that discarded proof)Verification
cargo clippy --package dash-sdk --all-features --locked -- --no-deps -D warnings— cleancargo fmt --check --package=dash-sdk— cleanSummary by CodeRabbit