Loading player…

Tracking mapping keys with the Truffle Debugger by Harry Altman

DevconYouTube

Fri, Oct 2, 2020, 12:00 AM

The Solidity language does not keep track of what keys are set in a given mapping. However, the Truffle Debugger can, when debugging a transaction, keep track of what keys have been accessed during that transaction, and it can do this even if the mappings are nested inside arrays, structs, or other mappings. In this talk, we will dissect Truffle Debugger's mapping key tracking system and learn how it works.