UNPKG

@melonproject/protocol

Version:

Technology Regulated and Operated Investment Funds

12 lines (11 loc) 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const findFunctionDefinition_1 = require("./findFunctionDefinition"); // this will fail in the case where there is an overload on the abi const getFunctionSignature = (abi, functionName) => { const functionDefinition = findFunctionDefinition_1.findFunctionDefinition(abi, functionName); return `${functionDefinition.name}(${functionDefinition.inputs .map(d => d.type) .join(',')})`; }; exports.getFunctionSignature = getFunctionSignature;