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

Method constructor

src/errors/encoding.ts:96–103  ·  view source on GitHub ↗
({ count }: { count: number })

Source from the content-addressed store, hash-verified

94}
95export class RlpTrailingBytesError extends BaseError {
96 constructor({ count }: { count: number }) {
97 super(
98 `RLP payload encodes a single item, but \`${count}\` trailing ${
99 count === 1 ? 'byte remains' : 'bytes remain'
100 }.`,
101 { name: 'RlpTrailingBytesError' },
102 )
103 }
104}
105
106export type SizeOverflowErrorType = SizeOverflowError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected