Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (13)
📒 Files selected for processing (5)
📝 WalkthroughWalkthroughSeparated read and broadcast timeouts, switched broadcast RPC calls to use the new broadcast timeout, and added an async broadcast helper that signs a transaction and broadcasts it non-synchronously (mempool acceptance) returning a BroadcastResult promise. Changes
Sequence DiagramsequenceDiagram
actor User
participant SDK as SDK
participant Signer as Signer
participant Hive as Hive RPC
User->>SDK: broadcastOperationsAsync(ops, key)
SDK->>Signer: build & sign Transaction (ops, key)
Signer-->>SDK: signed Transaction
SDK->>Hive: tx.broadcast(false) (uses config.broadcastTimeout)
Hive-->>SDK: Broadcast acceptance / tx_id
SDK-->>User: Promise<BroadcastResult> (tx_id, status: "unknown")
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/sdk/src/modules/core/hive-tx.ts`:
- Around line 145-158: Update the JSDoc comment above the asynchronous broadcast
helper to clarify that "fire-and-forget" only refers to not waiting for block
inclusion; the helper still awaits the call to broadcast_transaction and can
throw transport/RPC errors. Edit the comment around references to
broadcast_transaction, Transaction.checkStatus(), and broadcastOperations() so
callers know errors from the RPC/transport layer are propagated immediately
while block confirmation must be checked separately.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 137b6144-b783-4c68-9813-32a964f02293
⛔ Files ignored due to path filters (15)
packages/sdk/dist/browser/hive-CwYfobOc.d.tsis excluded by!**/dist/**packages/sdk/dist/browser/hive.d.tsis excluded by!**/dist/**packages/sdk/dist/browser/hive.jsis excluded by!**/dist/**packages/sdk/dist/browser/hive.js.mapis excluded by!**/dist/**,!**/*.mappackages/sdk/dist/browser/index.d.tsis excluded by!**/dist/**packages/sdk/dist/browser/index.jsis excluded by!**/dist/**packages/sdk/dist/browser/index.js.mapis excluded by!**/dist/**,!**/*.mappackages/sdk/dist/node/hive.cjsis excluded by!**/dist/**packages/sdk/dist/node/hive.cjs.mapis excluded by!**/dist/**,!**/*.mappackages/sdk/dist/node/hive.mjsis excluded by!**/dist/**packages/sdk/dist/node/hive.mjs.mapis excluded by!**/dist/**,!**/*.mappackages/sdk/dist/node/index.cjsis excluded by!**/dist/**packages/sdk/dist/node/index.cjs.mapis excluded by!**/dist/**,!**/*.mappackages/sdk/dist/node/index.mjsis excluded by!**/dist/**packages/sdk/dist/node/index.mjs.mapis excluded by!**/dist/**,!**/*.map
📒 Files selected for processing (3)
packages/sdk/src/hive-tx/config.tspackages/sdk/src/hive-tx/helpers/call.tspackages/sdk/src/modules/core/hive-tx.ts
Summary by CodeRabbit
New Features
Improvements