-
Notifications
You must be signed in to change notification settings - Fork 392
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: verify evm txid return by custom rpc #6408
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
概述代码变更解析步骤详解这组变更主要涉及交易广播和验证机制的增强。具体包括在 变更详情
序列图sequenceDiagram
participant Vault
participant ServiceSend
participant SendConfirm
Vault->>ServiceSend: broadcastTransaction
ServiceSend->>Vault: verifyTxId
Vault-->>ServiceSend: 验证结果
ServiceSend->>SendConfirm: 导航状态更新
这个序列图展示了事务广播、验证和导航状态管理的基本流程。 Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 🪧 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: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (4)
packages/kit-bg/src/services/ServiceSend.ts
(1 hunks)packages/kit-bg/src/vaults/base/VaultBase.ts
(1 hunks)packages/kit-bg/src/vaults/impls/evm/Vault.ts
(1 hunks)packages/kit/src/views/Send/pages/SendConfirmFromSwap/SendConfirmFromSwap.tsx
(2 hunks)
🔇 Additional comments (3)
packages/kit/src/views/Send/pages/SendConfirmFromSwap/SendConfirmFromSwap.tsx (1)
126-126
: 确保本地标记准确无误。
此处给 navigationToNext.current
赋值为 true
,帮助控制流程。若后续流程中异常退出,别忘记及时重置,避免重复导航。
packages/kit-bg/src/vaults/impls/evm/Vault.ts (1)
1235-1235
: 返回值新增 txid
。
此处返回交易哈希,能提升后续处理效率。实现简洁明了。
packages/kit-bg/src/vaults/base/VaultBase.ts (1)
1422-1428
: 这里直接返回 true。
若需实际校验,请补上真实逻辑。也可在日志中标明此方法尚未实现,以免使用者误判。
packages/kit/src/views/Send/pages/SendConfirmFromSwap/SendConfirmFromSwap.tsx
Show resolved
Hide resolved
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.
Summary by CodeRabbit
新功能
Bug 修复