ton icon indicating copy to clipboard operation
ton copied to clipboard

`dht.findValue` returns `dht.valueFound` with boxed `value:dht.Value`

Open andreypfau opened this issue 2 years ago • 0 comments

For some reason calling dht.findValue key:int256 k:int = dht.ValueResult;

returns for example this: 74f70ce4cb27ad90d6b538ada6729b917da714e3c1de6a3f0e3807169a43b980849205fdf663ead7076164647265737300000000c6b413483a36661a25a121f35156653a3406158ac3ee64c55d5716bddbc9604402348aaff7319fcc40ebd19967b4ef3b1c100f8dfd783d91a3db528a1cc893613275c043166f3fd36c495097dae69e1d9149d055c5c455ae3a71886a4df63078595fb17deca03c02060000002458e6272201000000e7a60d670100007fce0c00006a5160636a5160630000000000000000000000ea62606340c0eed0e17966486767f68e79bb6941ba4192321a856ee2eb8bcc2ac38d576aa5e88e78b9e1eae1b2dd14d887be5e18918816760eb210e6e862114f58a8639d07000000

If we try deserialize by TL-B scheme its failed, because by scheme dht.valueFound value:dht.Value = dht.ValueResult; value is non-boxed, dht.Value type has only one constructor and boxed constructor prefix not required.

But node returns dht.ValueResult with boxed prefix of dht.Value

andreypfau avatar Oct 31 '22 23:10 andreypfau