MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / getMaxUint

Function getMaxUint

src/lib/bytes.ts:18–18  ·  view source on GitHub ↗
(bits: number)

Source from the content-addressed store, hash-verified

16const maxUint = (bits: number) => BI_TWO ** BigInt(bits) - BI_ONE
17
18export const getMaxUint = (bits: number) => `0x${padEvenBytes(maxUint(bits).toString(16))}`
19
20const getOmitMask = (offset: number, size: number) => {
21 const bitsAfterStart = 256 - offset;

Callers 3

getMaxUintForFieldFunction · 0.90
hardhat.tsFile · 0.90
foundry.tsFile · 0.90

Calls 2

padEvenBytesFunction · 0.85
maxUintFunction · 0.85

Tested by

no test coverage detected