-
Notifications
You must be signed in to change notification settings - Fork 203
fix(torii-grpc): ensure correct u256 token id deser #3111
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
Conversation
WalkthroughOhayo, sensei! This change updates the conversion logic from a Changes
Sequence Diagram(s)sequenceDiagram
participant T as Token
participant C as Conversion (From<Token> for proto::types::Token)
participant D as DefaultHandler
T->>C: Provide Token with token_id
alt Token ID is empty
C->>D: Assign U256::ZERO as token_id
D-->>T: Return token with default token_id
else Token ID is not empty
C->>C: Trim "0x" prefix from token_id
C->>C: Convert token_id from hex string to byte vector
C-->>T: Return processed token structure
end
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3111 +/- ##
==========================================
+ Coverage 57.06% 57.11% +0.05%
==========================================
Files 442 442
Lines 61233 61178 -55
==========================================
Hits 34943 34943
+ Misses 26290 26235 -55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit