MCPcopy Create free account
hub / github.com/cardstack/cardstack / bigIntFromHex

Function bigIntFromHex

packages/cardpay-subgraph/src/abi.ts:108–110  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

106}
107
108function bigIntFromHex(hex: string): BigInt {
109 return bytes.toUnsignedInt(bytesFromHex(hex), true);
110}
111
112function bytesFromHex(hex: string): Bytes {
113 if (!hex.startsWith('0x')) {

Callers 1

decodeFunction · 0.85

Calls 1

bytesFromHexFunction · 0.85

Tested by

no test coverage detected