-
Notifications
You must be signed in to change notification settings - Fork 21
fix: eip 712 #581
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: eip 712 #581
Conversation
WalkthroughAdds a new capability check (supportEip712OnClassic) and updates EVMSignTypedData.run() control flow: Mini devices now follow the legacy signing path only when the new capability is not present. Removes the prior firmware/capability-based allowance for EthereumSignTypedData on Classic variants. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant App
participant EVMSignTypedData
participant Device
App->>EVMSignTypedData: run(request)
EVMSignTypedData->>Device: getCapabilities()
Note over EVMSignTypedData: Determine device type and supportEip712OnClassic
alt Device is Mini AND NOT supportEip712OnClassic
EVMSignTypedData->>Device: legacySign(request)
Device-->>EVMSignTypedData: legacy signature
else Device supports EIP-712 on Classic or not Mini
EVMSignTypedData->>Device: signTypedData(request)
Device-->>EVMSignTypedData: EIP-712 signature
end
EVMSignTypedData-->>App: result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/core/src/api/evm/EVMSignTypedData.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: build (22)
- GitHub Check: lint (22)
- GitHub Check: Analyze (javascript-typescript)
Summary by CodeRabbit