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

Function fillSignAndPack

test/UserOp.ts:460–463  ·  view source on GitHub ↗
(op: Partial<UserOperation>, signer: Wallet | Signer, entryPoint?: EntryPoint, options?: FillUserOpOptions)

Source from the content-addressed store, hash-verified

458 * utility method: call fillAndSign, and then pack it to submit to handleOps.
459 */
460export async function fillSignAndPack (op: Partial<UserOperation>, signer: Wallet | Signer, entryPoint?: EntryPoint, options?: FillUserOpOptions): Promise<PackedUserOperation> {
461 const filledAndSignedOp = await fillAndSign(op, signer, entryPoint, options)
462 return packUserOp(filledAndSignedOp)
463}
464
465/**
466 * This function relies on a "state override" functionality of the 'eth_call' RPC method

Calls 2

fillAndSignFunction · 0.85
packUserOpFunction · 0.85

Tested by 1