-
Notifications
You must be signed in to change notification settings - Fork 22
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: dot sign payload #284
Conversation
WalkthroughThe pull request introduces configuration and code modifications across several files in the Polkadot-related components. The changes primarily involve network configuration adjustments, dependency version updates, and refinements in address and transaction handling. The modifications aim to improve the robustness and compatibility of the Polkadot integration within the project. Changes
Sequence DiagramsequenceDiagram
participant User
participant Component
participant NetworkConfig
participant PolkadotAPI
User->>Component: Interact with Polkadot dApp
Component->>NetworkConfig: Retrieve Network Configuration
NetworkConfig-->>Component: Return Network Details
Component->>Component: Set Network Address Prefix
Component->>PolkadotAPI: Perform Signing/Transaction
PolkadotAPI-->>Component: Return Result/Error
Component->>User: Display Outcome
The sequence diagram illustrates the high-level interaction flow in the Polkadot component, showcasing how network configuration, address prefix, and API interactions are managed. 🪧 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
CodeRabbit Configuration 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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
packages/example/yarn.lock
is excluded by!**/yarn.lock
,!**/*.lock
📒 Files selected for processing (4)
packages/example/components/chains/polkadot/dapps.config.ts
(1 hunks)packages/example/components/chains/polkadot/example.tsx
(4 hunks)packages/example/components/chains/polkadot/params.ts
(1 hunks)packages/example/package.json
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: test_build_web
- GitHub Check: lint (ubuntu-latest, 20)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (5)
packages/example/components/chains/polkadot/params.ts (1)
15-15
: Verify the transaction value reductionThe transaction value has been reduced from '10000' to '1000'. Please confirm if this change is intentional and aligns with the business requirements.
packages/example/components/chains/polkadot/example.tsx (2)
103-103
: Good improvement on network prefix fallbackAdded a fallback to the first network's prefix, preventing undefined values. This makes the code more robust.
291-292
: Better error handlingGood improvement in error handling by extracting the message property. This provides clearer error messages to users.
packages/example/components/chains/polkadot/dapps.config.ts (1)
13-17
: Verify removal of Westend networkWestend is Polkadot's test network. Confirm if commenting it out was intentional, as this might affect testing capabilities.
✅ Verification successful
Westend network removal is safe
The commented-out Westend configuration is the only reference to this test network in the codebase. No tests depend on it, so the removal won't impact testing capabilities.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to Westend network rg -i "westend" --type ts --type tsxLength of output: 64
Script:
#!/bin/bash # Search for Westend references in TypeScript files and tests rg -i "westend" -g "*.ts" # Also check for any configuration files that might reference Westend fd -e ts -e json -x grep -i "westend" {} \; # Look for test-related files containing Westend fd -e test.ts -e spec.ts -x grep -i "westend" {} \;Length of output: 385
packages/example/package.json (1)
42-43
: Review major version updatesSignificant version updates for Polkadot packages:
- @polkadot/api: ^9.11.3 → ^15
- @polkadot/extension-dapp: ^0.47.5 → ^0.57.1
These major version jumps might introduce breaking changes.
Summary by CodeRabbit
Configuration
Component Updates
Dependency Upgrades
Performance