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

Method getFunction

lib.esm/contract/contract.js:726–732  ·  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

724 * when using a Contract programatically.
725 */
726 getFunction(key) {
727 if (typeof (key) !== "string") {
728 key = key.format();
729 }
730 const func = buildWrappedMethod(this, key);
731 return func;
732 }
733 /**
734 * Return the event for a given name. This is useful when a contract
735 * 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