UNPKG

@biconomy/abstractjs

Version:

SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.

14 lines 437 B
/** * @internal * Resolves instructions to an array of instructions * @param instructions - The instructions to resolve * @returns The resolved instructions */ export const resolveInstructions = async (instructions) => { return (await Promise.all(instructions .flatMap((iIs) => typeof iIs === "function" ? iIs() : iIs) .filter(Boolean))).flat(); }; //# sourceMappingURL=resolveInstructions.js.map