I want to convert BigInt into Bytes in subgraph code.
Please help me.
1 Like
I’d try to do something like:
const bytes = ByteArray.fromHexString(bigIntVar.toHexString())
See here: AssemblyScript API | Docs | The Graph
(There are probably nicer solutions …)
1 Like
I think you can do this Bytes.fromBigInt( )
1 Like