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

Method hasEvent

lib.commonjs/abi/interface.js:545–547  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 1

constructorMethod · 0.45

Calls 1

#getEventMethod · 0.95

Tested by

no test coverage detected