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

Method constructor

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

Source from the content-addressed store, hash-verified

45 static nodeMessage =
46 /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
47 constructor({
48 cause,
49 maxFeePerGas,
50 }: {
51 cause?: BaseError | undefined
52 maxFeePerGas?: bigint | undefined
53 } = {}) {
54 super(
55 `The fee cap (\`maxFeePerGas\`${
56 maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''
57 }) cannot be higher than the maximum allowed value (2^256-1).`,
58 {
59 cause,
60 name: 'FeeCapTooHighError',
61 },
62 )
63 }
64}
65
66export type FeeCapTooLowErrorType = FeeCapTooLowError & {

Callers

nothing calls this directly

Calls 1

formatGweiFunction · 0.50

Tested by

no test coverage detected