* 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)
| 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 |
no test coverage detected