@gnus.ai/upgrade-safe-transpiler-diamond
Version:
Solidity preprocessor used to generate OpenZeppelin Contracts Upgrade Safe using Diamond Pattern (EIP-2535).
14 lines • 655 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVarStorageName = void 0;
const assert_1 = __importDefault(require("assert"));
function getVarStorageName(varDecl, { resolver }) {
const contract = resolver.resolveContract(varDecl.scope);
(0, assert_1.default)(contract, `Could not locate Contract with id ${varDecl.scope}`);
return contract.name + 'Storage.layout().';
}
exports.getVarStorageName = getVarStorageName;
//# sourceMappingURL=get-var-storage-name.js.map