Repository navigation
fix(miniapps): PR #145 follow-up - TRON 支持 + E2E 边界测试 - #146
Merged
Merged
Conversation
- 移除 bio_getPublicKey(未实现的 API,从 SDK 类型和 provider 移除)
- 强化 COT API 配置:添加 ApiConfigError,getApiBaseUrlSafe 在未配置时抛出错误
- 实现 WalletPicker exclude 参数支持,过滤排除地址
- 添加 TRON/TRC20 支持(Teleport fromTrJson 构造)
- 添加 data-testid 属性用于 E2E 测试定位
- 添加 E2E 边界场景测试:
- Teleport: API 失败、用户取消、传送失败 (tests 09-11)
- Forge: 配置加载失败、钱包连接取消、充值失败 (tests 10-12)
- 更新白皮书 bio_signMessage 文档:返回 { signature, publicKey } 格式
- 修复 Forge Storybook 测试环境变量 mock
- BioAccount 类型添加必填 publicKey 字段 - ChainAddress 添加 publicKey 字段 - WalletPickerJob 选择时返回 publicKey - deriveAddressesForChains 返回公钥 - 钱包创建/更新时保存公钥到 IndexedDB - 更新白皮书 bio_selectAccount 文档 BREAKING CHANGE: BioAccount.publicKey 现为必填字段
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
基于 PR #145 Follow-up Review 的修复:
🔧 Bug 修复
ApiConfigError类,getApiBaseUrlSafe()在未配置时抛出明确错误(而非返回空字符串)✨ 新功能
🧪 测试增强
E2E 边界场景测试覆盖:
Teleport (tests 09-11):
Forge (tests 10-12):
📚 文档更新
bio_signMessage文档:返回{ signature, publicKey }格式测试通过: