Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis PR reorganizes the RWA module hierarchy by consolidating identity verification components under a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can disable sequence diagrams in the walkthrough.Disable the |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/tokens/src/fungible/test.rs (1)
155-158: Change aligns with PR objective to removesuperkeyword.The explicit
crate::fungible::path is clearer thansuper::. However, sinceFungibleStorageKeyis already imported at line 15, you could simplify for consistency with line 303:♻️ Optional: use imported `FungibleStorageKey` for consistency
- let key = crate::fungible::FungibleStorageKey::Allowance(crate::fungible::AllowanceKey { + let key = FungibleStorageKey::Allowance(crate::fungible::AllowanceKey {Alternatively, add
AllowanceKeyto the import at line 14-16 and use both directly.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/tokens/src/fungible/test.rs` around lines 155 - 158, The current construction uses fully-qualified paths; replace crate::fungible::FungibleStorageKey::Allowance(crate::fungible::AllowanceKey { ... }) with the imported types to match project style: use FungibleStorageKey::Allowance(AllowanceKey { owner: owner.clone(), spender: spender.clone() }) or alternatively add AllowanceKey to the existing imports and then use FungibleStorageKey::Allowance(AllowanceKey { owner: owner.clone(), spender: spender.clone() }) so the code is concise and consistent with other uses of FungibleStorageKey and AllowanceKey.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@packages/tokens/src/fungible/test.rs`:
- Around line 155-158: The current construction uses fully-qualified paths;
replace
crate::fungible::FungibleStorageKey::Allowance(crate::fungible::AllowanceKey {
... }) with the imported types to match project style: use
FungibleStorageKey::Allowance(AllowanceKey { owner: owner.clone(), spender:
spender.clone() }) or alternatively add AllowanceKey to the existing imports and
then use FungibleStorageKey::Allowance(AllowanceKey { owner: owner.clone(),
spender: spender.clone() }) so the code is concise and consistent with other
uses of FungibleStorageKey and AllowanceKey.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9388b0d4-47d7-4217-bb61-471ee7868cbd
📒 Files selected for processing (31)
examples/rwa/src/identity_registry_storage.rspackages/accounts/src/smart_account/storage.rspackages/accounts/src/smart_account/test/signers_and_policies.rspackages/governance/src/votes/storage.rspackages/tokens/src/fungible/test.rspackages/tokens/src/non_fungible/extensions/consecutive/test.rspackages/tokens/src/non_fungible/extensions/royalties/storage.rspackages/tokens/src/rwa/compliance/mod.rspackages/tokens/src/rwa/compliance/modules/mod.rspackages/tokens/src/rwa/compliance/storage.rspackages/tokens/src/rwa/extensions/doc_manager/storage.rspackages/tokens/src/rwa/identity_verification/claim_issuer/mod.rspackages/tokens/src/rwa/identity_verification/claim_issuer/storage.rspackages/tokens/src/rwa/identity_verification/claim_issuer/test.rspackages/tokens/src/rwa/identity_verification/claim_topics_and_issuers/mod.rspackages/tokens/src/rwa/identity_verification/claim_topics_and_issuers/storage.rspackages/tokens/src/rwa/identity_verification/claim_topics_and_issuers/test.rspackages/tokens/src/rwa/identity_verification/identity_claims/mod.rspackages/tokens/src/rwa/identity_verification/identity_claims/storage.rspackages/tokens/src/rwa/identity_verification/identity_claims/test.rspackages/tokens/src/rwa/identity_verification/identity_registry_storage/mod.rspackages/tokens/src/rwa/identity_verification/identity_registry_storage/storage.rspackages/tokens/src/rwa/identity_verification/identity_registry_storage/test.rspackages/tokens/src/rwa/identity_verification/mod.rspackages/tokens/src/rwa/identity_verification/storage.rspackages/tokens/src/rwa/identity_verification/test.rspackages/tokens/src/rwa/mod.rspackages/tokens/src/rwa/storage.rspackages/tokens/src/rwa/test.rspackages/tokens/src/rwa/utils/token_binder/test.rsrustfmt.toml
💤 Files with no reviewable changes (1)
- rustfmt.toml
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #620 +/- ##
=======================================
Coverage 96.37% 96.37%
=======================================
Files 58 58
Lines 5960 5960
=======================================
Hits 5744 5744
Misses 216 216 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #617
Also, fixed 2 more very small tasks while I was at it. Since these are very minor, I thought scoped PR's are not necessary
Fixes #618
Fixes #619
PR Checklist
Summary by CodeRabbit
Release Notes
Refactor
New Features
Style