Conversation
…aits to improve efficiency
|
""" WalkthroughOhayo sensei! This update introduces a new Changes
Sequence Diagram(s)sequenceDiagram
participant Macro as Macro (DojoEvent/DojoModel)
participant Definition as Event/Model Definition
participant Selector as Selector Logic
Macro->>Definition: Generate NAME_HASH constant (felt252)
Selector->>Definition: Access NAME_HASH
Selector->>Selector: Compute selector using selector_from_hashes(namespace_hash, NAME_HASH)
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
proc macros have been merged, don't hesitate to rebase. 🫡 |
…rb.lock and Scarb.toml
…nt and model identification chore: update Scarb.lock to version 1.6.0-alpha.1 for dojo and dojo_cairo_test fix: correct import in model.cairo for ModelDefinition and remove unnecessary line
glihm
left a comment
There was a problem hiding this comment.
@bengineer42 sorry for the delay on that. Would be great to be reworked with the new macros. 🫡
Description
THIS WILL NEED AN UPDATE TO THE SCARB REPO
https://github.com/dojoengine/scarb/blob/fix-unit-type/scarb/Cargo.toml#L49
Before the hash of the model name was computed everyt time it was called, this has been moved to compile time and is now part of the
ModelDefinitionRelated issue
Tests
Added to documentation?
Checklist
scripts/rust_fmt.sh,scripts/cairo_fmt.sh)scripts/clippy.sh,scripts/docs.sh)Summary by CodeRabbit
New Features
Refactor