@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
13 lines • 735 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMEEVersion = getMEEVersion;
const getVersion_1 = require("../../account/utils/getVersion.js");
const constants_1 = require("../../constants/index.js");
function getMEEVersion(meeVersion) {
if (meeVersion in constants_1.DEFAULT_CONFIGURATIONS_BY_MEE_VERSION) {
return constants_1.DEFAULT_CONFIGURATIONS_BY_MEE_VERSION[meeVersion];
}
const allVersions = Object.keys(constants_1.DEFAULT_CONFIGURATIONS_BY_MEE_VERSION).sort((a, b) => (0, getVersion_1.semverCompare)(b, a));
throw new Error(`Unsupported MEE version: ${meeVersion}. Compatible versions are: ${allVersions.join(", ")}`);
}
//# sourceMappingURL=getMeeConfig.js.map