Skip to content

Conversation

thebrianchen
Copy link
Contributor

@thebrianchen thebrianchen commented Sep 26, 2025

Pull Request Checklist


PR-Codex overview

This PR focuses on updating the package.json scripts, modifying the AlchemyJsonRpcSchema type, and refactoring tests in requestGasAndPaymasterAndData.test.ts to use new imports and structures from @alchemy packages, enhancing compatibility and organization.

Detailed summary

  • Updated package.json build and build:libs scripts.
  • Changed AlchemyJsonRpcSchema type to an empty array.
  • Replaced createLightAccount with toLightAccount from @alchemy/smart-accounts.
  • Refactored test cases to use privateKeyToAccount and createWalletClient.
  • Updated method calls to use new signatures like getStubSignature() instead of getDummySignature().

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

Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
aa-sdk-ui-demo Ready Ready Preview Comment Sep 26, 2025 8:57pm

Copy link

github-actions bot commented Sep 26, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Sep 26, 2025, 8:55 PM

initCode: await smartAccount.getInitCode(),
callData: await smartAccount.encodeBatchExecute([
initCode:
factoryArgs.factory && factoryArgs.factoryData
Copy link
Contributor Author

@thebrianchen thebrianchen Sep 26, 2025

Choose a reason for hiding this comment

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

i couldn't get this part to look clean, is there a simpler way? this is based on claude, but not sure if this correctly maps to init code. not sure where comes from now

Copy link
Contributor

Choose a reason for hiding this comment

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

factory && factoryData ? concat([factory, factoryData]) : undefined is slightly nicer.

this is normally handled within prepareUserOperation w/ viem, but that also handles gas and paymaster data, so we can't really use it here.

initCode: await smartAccount.getInitCode(),
callData: await smartAccount.encodeBatchExecute([
initCode:
factoryArgs.factory && factoryArgs.factoryData
Copy link
Contributor

Choose a reason for hiding this comment

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

factory && factoryData ? concat([factory, factoryData]) : undefined is slightly nicer.

this is normally handled within prepareUserOperation w/ viem, but that also handles gas and paymaster data, so we can't really use it here.

@github-actions github-actions bot temporarily deployed to docs-preview September 26, 2025 20:53 Inactive
@thebrianchen thebrianchen merged commit 1e39896 into moldy/v5-base Sep 26, 2025
10 checks passed
@thebrianchen thebrianchen deleted the bc/remove-account-kit branch September 26, 2025 21:02
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