* Returns true if %%key%% (an event topic hash, event name or * event signature) is present in the ABI. * * In the case of an event name, the name may be ambiguous, so * accessing the [[EventFragment]] may require refinement.
(key)
| 543 | * accessing the [[EventFragment]] may require refinement. |
| 544 | */ |
| 545 | hasEvent(key) { |
| 546 | return !!this.#getEvent(key, null, false); |
| 547 | } |
| 548 | /** |
| 549 | * Get the [[EventFragment]] for %%key%%, which may be a topic hash, |
| 550 | * event name or event signature that belongs to the ABI. |