@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
13 lines • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildDefaultInstructions = void 0;
const buildDefaultInstructions = async (baseParams, instructions) => {
const { currentInstructions = [] } = baseParams;
return [
...currentInstructions,
...(Array.isArray(instructions) ? instructions : [instructions])
];
};
exports.buildDefaultInstructions = buildDefaultInstructions;
exports.default = exports.buildDefaultInstructions;
//# sourceMappingURL=buildDefaultInstructions.js.map