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

Method constructor

src/errors/node.ts:136–146  ·  view source on GitHub ↗
({
    cause,
    nonce,
  }: { cause?: BaseError | undefined; nonce?: number | undefined } = {})

Source from the content-addressed store, hash-verified

134export class NonceMaxValueError extends BaseError {
135 static nodeMessage = /nonce has max value/
136 constructor({
137 cause,
138 nonce,
139 }: { cause?: BaseError | undefined; nonce?: number | undefined } = {}) {
140 super(
141 `Nonce provided for the transaction ${
142 nonce ? `(${nonce}) ` : ''
143 }exceeds the maximum allowed nonce.`,
144 { cause, name: 'NonceMaxValueError' },
145 )
146 }
147}
148
149export type InsufficientFundsErrorType = InsufficientFundsError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected