MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / getFunction

Method getFunction

lib.commonjs/contract/contract.js:731–737  ·  view source on GitHub ↗

* Return the function for a given name. This is useful when a contract * method name conflicts with a JavaScript name such as ``prototype`` or * when using a Contract programatically.

(key)

Source from the content-addressed store, hash-verified

729 * when using a Contract programatically.
730 */
731 getFunction(key) {
732 if (typeof (key) !== "string") {
733 key = key.format();
734 }
735 const func = buildWrappedMethod(this, key);
736 return func;
737 }
738 /**
739 * Return the event for a given name. This is useful when a contract
740 * event name conflicts with a JavaScript name such as ``prototype`` or

Callers 3

getFragmentFunction · 0.45
buildWrappedMethodFunction · 0.45
constructorMethod · 0.45

Calls 2

buildWrappedMethodFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected