MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / getErrorCode

Function getErrorCode

packages/hardhat-errors/src/errors.ts:241–243  ·  view source on GitHub ↗
(errorDescriptor: ErrorDescriptor)

Source from the content-addressed store, hash-verified

239}
240
241function getErrorCode(errorDescriptor: ErrorDescriptor): string {
242 return `${ERROR_PREFIX}${errorDescriptor.number}`;
243}
244
245/**
246 * This function applies error messages templates like this:

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected