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

Function wordAt

packages/cardpay-subgraph/src/abi.ts:100–102  ·  view source on GitHub ↗
(hex: string, offset: i32)

Source from the content-addressed store, hash-verified

98}
99
100function wordAt(hex: string, offset: i32): string {
101 return hex.slice(offset, offset + WORD_SIZE);
102}
103
104function hexToAddress(hex: string): Address {
105 return Address.fromString(toHex(hex.slice(24, 64)));

Callers 1

decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected