* 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)
| 446 | * accessing the [[EventFragment]] may require refinement. |
| 447 | */ |
| 448 | hasEvent(key) { |
| 449 | return !!this.#getEvent(key, null, false); |
| 450 | } |
| 451 | /** |
| 452 | * Get the [[EventFragment]] for %%key%%, which may be a topic hash, |
| 453 | * event name or event signature that belongs to the ABI. |