Hi there guys, how can I convert the hash that I get from a cell in TypeScript, like this, my_cell.hash() which is a buffer, to an bigint? In a way that later in the contract if I make cell_hash(my_cell) these two numbers will be equals? I'm trying to do something like this in my typescript code:
let hash: bigint = my_cell.hash().readBigInt64BE()
And then sending this, but the numbers differs by far. Any suggestion
Aug 9, 2023, 7:03 AM
BigInt(“0x” + hash.toString(“hex”))
Aug 9, 2023, 7:04 AM
Let me try this stuff, thanks in advance man
Aug 9, 2023, 7:05 AM