@melonproject/protocol
Version:
Technology Regulated and Operated Investment Funds
20 lines (19 loc) • 768 B
JavaScript
;
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const Contracts_1 = require("../../../../Contracts");
const callFactory_1 = require("../../../../utils/solidity/callFactory");
const web3Utils = __importStar(require("web3-utils"));
const postProcess = (environment, result) => {
return web3Utils.toUtf8(result);
};
const getName = callFactory_1.callFactoryWithoutParams('name', Contracts_1.Contracts.Hub, {
postProcess,
});
exports.getName = getName;