(observedBytes: number, options: CompactExecutionPayloadOptions)
| 59 | } |
| 60 | |
| 61 | function assertRejectSize(observedBytes: number, options: CompactExecutionPayloadOptions): void { |
| 62 | if (!options.rejectLargeValues) return |
| 63 | if (observedBytes > (options.thresholdBytes ?? LARGE_VALUE_THRESHOLD_BYTES)) { |
| 64 | throw largeValueLimitError(options, observedBytes) |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | async function compactValue( |
| 69 | value: unknown, |
no test coverage detected