-
Notifications
You must be signed in to change notification settings - Fork 196
chore: remove account-kit refs in v5 #2123
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🌿 Documentation Preview
|
initCode: await smartAccount.getInitCode(), | ||
callData: await smartAccount.encodeBatchExecute([ | ||
initCode: | ||
factoryArgs.factory && factoryArgs.factoryData |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
This PR focuses on updating the
package.json
scripts, modifying theAlchemyJsonRpcSchema
type, and refactoring tests inrequestGasAndPaymasterAndData.test.ts
to use new imports and structures from@alchemy
packages, enhancing compatibility and organization.Detailed summary
package.json
build
andbuild:libs
scripts.AlchemyJsonRpcSchema
type to an empty array.createLightAccount
withtoLightAccount
from@alchemy/smart-accounts
.privateKeyToAccount
andcreateWalletClient
.getStubSignature()
instead ofgetDummySignature()
.