Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
108
function
bigIntFromHex(hex: string): BigInt {
109
return
bytes.toUnsignedInt(bytesFromHex(hex), true);
110
}
111
112
function
bytesFromHex(hex: string): Bytes {
113
if
(!hex.startsWith(
'0x'
)) {
Callers
1
decode
Function · 0.85
Calls
1
bytesFromHex
Function · 0.85
Tested by
no test coverage detected