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

Function hexToAddress

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

Source from the content-addressed store, hash-verified

102}
103
104function hexToAddress(hex: string): Address {
105 return Address.fromString(toHex(hex.slice(24, 64)));
106}
107
108function bigIntFromHex(hex: string): BigInt {
109 return bytes.toUnsignedInt(bytesFromHex(hex), true);

Callers 1

decodeFunction · 0.85

Calls 1

toHexFunction · 0.90

Tested by

no test coverage detected