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