-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(katana-node-bindings): use new Felt #2146
Conversation
WalkthroughThe changes primarily consist of updating the data type from Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOOKS GOOD TO MEEE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
Cargo.lock
is excluded by!**/*.lock
Files selected for processing (3)
- crates/katana/node-bindings/Cargo.toml (1 hunks)
- crates/katana/node-bindings/src/lib.rs (9 hunks)
- crates/katana/runner/src/lib.rs (3 hunks)
Files skipped from review due to trivial changes (1)
- crates/katana/node-bindings/Cargo.toml
Additional comments not posted (11)
crates/katana/runner/src/lib.rs (3)
26-26
: Change Approved: Updatedcontract
field to useFelt
.The
contract
field in theKatanaRunner
struct has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
153-153
: Change Approved: Updatedset_contract
method to useFelt
.The
set_contract
method's parameter type has been updated toFelt
. This change is consistent with the objective to use the new Felt type.
158-158
: Change Approved: Updatedcontract
method to useFelt
.The
contract
method's return type has been updated toFelt
. This change is consistent with the objective to use the new Felt type.crates/katana/node-bindings/src/lib.rs (8)
16-16
: Change Approved: Updated import statement to useFelt
.The import statement has been updated to import
Felt
instead ofFieldElement
. This change is consistent with the objective to use the new Felt type.
32-32
: Change Approved: Updatedaddress
field inAccount
struct to useFelt
.The
address
field in theAccount
struct has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
45-45
: Change Approved: Updatedchain_id
field inKatanaInstance
struct to useFelt
.The
chain_id
field in theKatanaInstance
struct has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
65-65
: Change Approved: Updatedchain_id
method inKatanaInstance
struct to returnFelt
.The
chain_id
method in theKatanaInstance
struct has been updated to returnFelt
. This change is consistent with the objective to use the new Felt type.
338-338
: Change Approved: Updatedchain_id
method inKatana
builder to acceptFelt
.The
chain_id
method in theKatana
builder has been updated to acceptFelt
. This change is consistent with the objective to use the new Felt type.
511-511
: Change Approved: Updatedaddress
assignment inspawn
method to useFelt
.The
address
assignment in thespawn
method has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
512-512
: Change Approved: Updatedprivate_key
assignment inspawn
method to useFelt
.The
private_key
assignment in thespawn
method has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
569-569
: Change Approved: Updatedprivate_key
assignment inspawn
method to useFelt
.The
private_key
assignment in thespawn
method has been updated to useFelt
. This change is consistent with the objective to use the new Felt type.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2146 +/- ##
==========================================
- Coverage 68.13% 67.82% -0.32%
==========================================
Files 334 334
Lines 41894 42048 +154
==========================================
- Hits 28546 28519 -27
- Misses 13348 13529 +181 ☔ View full report in Codecov by Sentry. |
Description
Related issue
Tests
Added to documentation?
Checklist
scripts/prettier.sh
,scripts/rust_fmt.sh
,scripts/cairo_fmt.sh
)scripts/clippy.sh
,scripts/docs.sh
)Summary by CodeRabbit
FieldElement
toFelt
across various structs and methods to reflect improved data representation. This change impacts how addresses, chain IDs, and private keys are handled within the application.