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

Method constructor

src/errors/node.ts:72–88  ·  view source on GitHub ↗
({
    cause,
    maxFeePerGas,
  }: {
    cause?: BaseError | undefined
    maxFeePerGas?: bigint | undefined
  } = {})

Source from the content-addressed store, hash-verified

70 static nodeMessage =
71 /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
72 constructor({
73 cause,
74 maxFeePerGas,
75 }: {
76 cause?: BaseError | undefined
77 maxFeePerGas?: bigint | undefined
78 } = {}) {
79 super(
80 `The fee cap (\`maxFeePerGas\`${
81 maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ''
82 } gwei) cannot be lower than the block base fee.`,
83 {
84 cause,
85 name: 'FeeCapTooLowError',
86 },
87 )
88 }
89}
90
91export type NonceTooHighErrorType = NonceTooHighError & {

Callers

nothing calls this directly

Calls 1

formatGweiFunction · 0.50

Tested by

no test coverage detected