Hey guys, how can i parse a dict in typescript package?

const { stack } = await provider.get('userData', [
{
type: 'int',
value: BigInt(1),
},
]);
const mainDictionaryOfUser = stack
.readCell()
.beginParse()
.loadDictDirect(Dictionary.Keys.Uint(16), Dictionary.Values.Cell()).values;

gives me error : No more references

Feb 15, 2023, 2:23 PM
Normally my cell is :

x{9607E_}
x{5}
x{2_}
x{2_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0C0000000000000000000000000000000000000000002_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0C4000000000000000000000000000000000000000002_}
x{2_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0C8000000000000000000000000000000000000000002_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0CC000000000000000000000000000000000000000002_}
x{2_}
x{2_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0D0000000000000000000000000000000000000000002_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0D4000000000000000000000000000000000000000002_}
x{2_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0D8000000000000000000000000000000000000000002_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0DC000000000000000000000000000000000000000002_}
x{CE_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0E0000000000000000000000000000000000000000002_}
x{1D195CDD1019DB585A5B0B98DBDB5F0000000000000000000000000000000000000000000000000000000000000C4C8CCD0D4C4C0C0E4000000000000000000000000000000000000000002_}
they're cells
https://github.com/Iamknownasfesal/Hack-a-TONx-w-DoraHacks/blob/main/PassTON/contracts/pass_ton_main.fc
Feb 15, 2023, 2:25 PM
did you run your code?
Feb 15, 2023, 2:29 PM
Yep

https://github.com/Iamknownasfesal/Hack-a-TONx-w-DoraHacks/blob/main/PassTON/scripts/deployPassTonMain.ts
Feb 15, 2023, 2:29 PM

© 2024 Draquery.com All rights reserved.