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

Function assertReadLimit

src/utils/cursor.ts:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 recursiveReadCount: 0,
69 recursiveReadLimit: Number.POSITIVE_INFINITY,
70 assertReadLimit() {
71 if (this.recursiveReadCount >= this.recursiveReadLimit)
72 throw new RecursiveReadLimitExceededError({
73 count: this.recursiveReadCount + 1,
74 limit: this.recursiveReadLimit,
75 })
76 },
77 assertPosition(position) {
78 if (position < 0 || position > this.bytes.length - 1)
79 throw new PositionOutOfBoundsError({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected