MCPcopy
hub / github.com/eth-infinitism/account-abstraction / getAccountFactoryData

Function getAccountFactoryData

test/testutils.ts:110–112  ·  view source on GitHub ↗
(owner: string, factory: SimpleAccountFactory, salt = 0)

Source from the content-addressed store, hash-verified

108
109// helper function to create the initCode to deploy the account, using our account factory.
110export function getAccountFactoryData (owner: string, factory: SimpleAccountFactory, salt = 0): BytesLike {
111 return factory.interface.encodeFunctionData('createAccount', [owner, salt])
112}
113
114export async function getAggregatedAccountFactoryData (entryPoint: string, factory: TestAggregatedAccountFactory, salt = 0): Promise<BytesLike> {
115 // the test aggregated account doesn't check the owner...

Callers 4

entrypoint.test.tsFile · 0.90
_createUserOperationMethod · 0.90

Calls

no outgoing calls

Tested by 1