MCPcopy Index your code
hub / github.com/PolymathNetwork/polymath-core / encodeProxyCall

Function encodeProxyCall

test/helpers/encodeCall.js:3–7  ·  view source on GitHub ↗
(parametersType, values)

Source from the content-addressed store, hash-verified

1const abi = require("ethereumjs-abi");
2
3export function encodeProxyCall(parametersType, values) {
4 const methodId = abi.methodID("initialize", parametersType).toString("hex");
5 const params = abi.rawEncode(parametersType, values).toString("hex");
6 return "0x" + methodId + params;
7}
8
9export function encodeModuleCall(parametersType, values) {
10 const methodId = abi.methodID("configure", parametersType).toString("hex");

Calls

no outgoing calls

Tested by

no test coverage detected