MCPcopy Create free account
hub / github.com/CashScript/cashscript / placeholder

Function placeholder

packages/utils/src/data.ts:55–57  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

53}
54
55export function placeholder(size: number): Uint8Array {
56 return new Uint8Array(size).fill(0);
57}
58
59export function range(start: number, end: number): number[] {
60 return Array.from({ length: end - start + 1 }, (_, i) => start + i);

Callers 4

Contract.test.tsFile · 0.90
util.test.tsFile · 0.90
HodlVault.test.tsFile · 0.90
data.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected