MCPcopy Create free account
hub / github.com/wevm/viem / constructor

Method constructor

src/errors/blob.ts:51–65  ·  view source on GitHub ↗
({
    hash,
    version,
  }: {
    hash: Hash
    version: number
  })

Source from the content-addressed store, hash-verified

49 }
50export class InvalidVersionedHashVersionError extends BaseError {
51 constructor({
52 hash,
53 version,
54 }: {
55 hash: Hash
56 version: number
57 }) {
58 super(`Versioned hash "${hash}" version is invalid.`, {
59 metaMessages: [
60 `Expected: ${versionedHashVersionKzg}`,
61 `Received: ${version}`,
62 ],
63 name: 'InvalidVersionedHashVersionError',
64 })
65 }
66}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected