Fix Nep17Transfer lookups #2553
Labels
area/node
Categorize issue or PR as node (@neo-one/node) related
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
When looking up Nep17Transfers with the RPC method 'getnep17transfers' I noticed strange behavior when trying to get all nep 17 transfers for a certain address in between startTime and endTime. It doesn't work correctly. Storage lookup params change when we pass each max byte mark. ie. 0 to 255 time is different than 0 to 256. Going into detail here would be very verbose. But it's not the expected behavior. To figure out what the search range keys are supposed to look like we need to see the exact bytes that are used in the neo-modules C# version. And need to understand better how storage iterator lookups work. We may need to create a Nep17TransferKey() object for the lookup and serialize it with zeros after the scripthash and timestampMS are serialized.
The text was updated successfully, but these errors were encountered: