Skip to content
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

refactor: sendTokenPaymasterUserOp return type #155

Merged
merged 37 commits into from
Dec 23, 2024
Merged

refactor: sendTokenPaymasterUserOp return type #155

merged 37 commits into from
Dec 23, 2024

Conversation

VGabriel45
Copy link
Collaborator

@VGabriel45 VGabriel45 commented Dec 23, 2024

PR-Codex overview

This PR refactors the handling of user operations in the bico.paymaster tests and the sendTokenPaymasterUserOp function. It changes the return type to return a hash instead of a receipt, streamlining the process of waiting for user operation confirmations.

Detailed summary

  • Renamed receipt to hash in createBicoPaymasterClient.test.ts.
  • Added waitForUserOperationReceipt after sending a user operation to get the receipt.
  • Updated the documentation in sendTokenPaymasterUserOp to reflect the change from returning a receipt to returning a hash.
  • Removed unnecessary imports related to WaitForUserOperationReceiptReturnType.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

size-limit report 📦

Path Size
core (esm) 14.89 KB (-0.06% 🔽)
core (cjs) 20.97 KB (+0.18% 🔺)
bundler (tree-shaking) 544 B (0%)
paymaster (tree-shaking) 543 B (0%)

@VGabriel45 VGabriel45 changed the title Feat/tpm refactor: sendTokenPaymasterUserOp return type Dec 23, 2024
@VGabriel45 VGabriel45 changed the title refactor: sendTokenPaymasterUserOp return type refactor: sendTokenPaymasterUserOp return type Dec 23, 2024
@VGabriel45 VGabriel45 merged commit 549788b into develop Dec 23, 2024
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants