@decent-bet/solido
Version:
Code first contract entity mapper for Solidity based blockchains like Ethereum, Vechain, Tron
17 lines (16 loc) • 488 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function GetMethod(options) {
return (target, propertyKey) => {
const getMethod = function () {
const self = this;
return self.getMethod(options.name || propertyKey);
};
Object.defineProperty(target, propertyKey, {
value: getMethod,
enumerable: false,
configurable: true
});
};
}
exports.GetMethod = GetMethod;