({
cause,
maxFeePerGas,
}: {
cause?: BaseError | undefined
maxFeePerGas?: bigint | undefined
} = {})
| 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 | |
| 66 | export type FeeCapTooLowErrorType = FeeCapTooLowError & { |
nothing calls this directly
no test coverage detected