-
Notifications
You must be signed in to change notification settings - Fork 182
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
refactor(torii): abstract out how to format felts to avoid bugs #2444
Conversation
5457cc5
to
a212e36
Compare
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.
Thanks for this refactoring, useful to avoid too much strings to update in case of changes.
felts.iter().map(|k| format!("{:#x}", k)).collect::<Vec<String>>().join(FELT_DELIMITER) | ||
+ FELT_DELIMITER | ||
} | ||
|
||
pub(crate) fn felt_to_sql_string(felt: &Felt) -> String { | ||
format!("{:#x}", felt) |
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.
We should perhaps have a function with padding and one without padding? Or we always use without padding?
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.
yeah for felt we where not padding previously so i kept the same behaviour
d53a2e4
to
fc56768
Compare
a97288c
to
6f1f5a4
Compare
fc56768
to
83ac6d1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## spr/main/5231a946 #2444 +/- ##
====================================================
Coverage ? 67.57%
====================================================
Files ? 370
Lines ? 48574
Branches ? 0
====================================================
Hits ? 32822
Misses ? 15752
Partials ? 0 ☔ View full report in Codecov by Sentry. |
83ac6d1
to
3414843
Compare
6f1f5a4
to
12df212
Compare
3414843
to
49e97bd
Compare
33deeb3
to
7efbca3
Compare
49e97bd
to
ade93c2
Compare
commit-id:d618e874
7efbca3
to
cbedcce
Compare
ade93c2
to
49af8d1
Compare
commit-id:10465a00
commit-id:3bfe5955
commit-id:923dbba6
- cleanup plus other refactor for the PR stack - `start_block` configuration removed since it was no longer necessary now that we use `get_events` for `sync_range` - use debug log level transfer events commit-id:4acad5f3
commit-id:c6195721
Stack: