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