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

Method constructor

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

Source from the content-addressed store, hash-verified

94export class NonceTooHighError extends BaseError {
95 static nodeMessage = /nonce too high/
96 constructor({
97 cause,
98 nonce,
99 }: { cause?: BaseError | undefined; nonce?: number | undefined } = {}) {
100 super(
101 `Nonce provided for the transaction ${
102 nonce ? `(${nonce}) ` : ''
103 }is higher than the next one expected.`,
104 { cause, name: 'NonceTooHighError' },
105 )
106 }
107}
108
109export type NonceTooLowErrorType = NonceTooLowError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected