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

Method forEachError

lib.esm/abi/interface.js:627–634  ·  view source on GitHub ↗

* Iterate over all errors, calling %%callback%%, sorted by their name.

(callback)

Source from the content-addressed store, hash-verified

625 * Iterate over all errors, calling %%callback%%, sorted by their name.
626 */
627 forEachError(callback) {
628 const names = Array.from(this.#errors.keys());
629 names.sort((a, b) => a.localeCompare(b));
630 for (let i = 0; i < names.length; i++) {
631 const name = names[i];
632 callback((this.#errors.get(name)), i);
633 }
634 }
635 // Get the 4-byte selector used by Solidity to identify a function
636 /*
637getSelector(fragment: ErrorFragment | FunctionFragment): string {

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected