@newos/upgradeability-transpiler
Version:
Transpiles Solidity contracts to updgradable versions compatible with NewOs.
10 lines • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ast_utils_1 = require("./ast-utils");
function getInheritanceChain(contract, contractsToArtifactsMap) {
const art = contractsToArtifactsMap[contract];
const contractNode = ast_utils_1.getContract(art);
return contractNode.linearizedBaseContracts.map(base => contractsToArtifactsMap[base]);
}
exports.getInheritanceChain = getInheritanceChain;
//# sourceMappingURL=get-inheritance-chain.js.map