Skip to content

chore: additional confirmation of UserOperation #54

Merged
0xdeval merged 3 commits intodevelopfrom
feat/uo-confirmation
Feb 3, 2026
Merged

chore: additional confirmation of UserOperation #54
0xdeval merged 3 commits intodevelopfrom
feat/uo-confirmation

Conversation

@0xdeval
Copy link
Copy Markdown
Collaborator

@0xdeval 0xdeval commented Jan 29, 2026

Added additional confirmation of UO on RPC side before the processing

Resolve: #53

@0xdeval 0xdeval self-assigned this Jan 29, 2026
Copilot AI review requested due to automatic review settings January 29, 2026 10:35
@0xdeval 0xdeval added the enhancement New feature or request label Jan 29, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds additional confirmation that UserOperations and their underlying transactions are included in the blockchain before the send() and sendBatch() methods return. It addresses issue #53 by implementing a two-step verification process: first waiting for the UserOperation receipt from the bundler, then additionally confirming the transaction is included on-chain via the RPC node.

Changes:

  • Added publicClient.waitForTransactionReceipt() call after receiving UserOperation receipt in both send() and sendBatch() methods
  • Renamed variable from hash to userOperationHash for clarity
  • Updated test mocks to include transaction hash in UserOperation receipt

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/sdk/src/wallet/DefaultSmartWallet.ts Added RPC-level transaction confirmation after UserOperation receipt in send() and sendBatch() methods
packages/sdk/src/wallet/DefaultSmartWallet.spec.ts Updated test mocks to provide transaction hash in UserOperation receipt for both send() and sendBatch() tests
packages/sdk/src/test/mocks/ChainManagerMock.ts Added waitForTransactionReceipt method to mock publicClient

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/sdk/src/wallet/DefaultSmartWallet.ts
Comment thread packages/sdk/src/wallet/DefaultSmartWallet.ts
Comment thread packages/sdk/src/wallet/DefaultSmartWallet.spec.ts
Comment thread packages/sdk/src/wallet/DefaultSmartWallet.spec.ts
@0xdeval 0xdeval linked an issue Jan 29, 2026 that may be closed by this pull request
@0xdeval 0xdeval merged commit d22d73a into develop Feb 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirm UserOperation and txns inside the blockcahin

2 participants