UNPKG

@newos/upgradeability-transpiler

Version:

Transpiles Solidity contracts to updgradable versions compatible with NewOs.

12 lines 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const get_var_inits_1 = require("./get-var-inits"); function purgeVarInits(contractNode, source) { return get_var_inits_1.getVarInits(contractNode, source).map(([, start, match]) => ({ start: start + match[1].length, end: start + match[1].length + match[2].length, text: '', })); } exports.purgeVarInits = purgeVarInits; //# sourceMappingURL=purge-var-inits.js.map