Open Nashtare opened 4 months ago
Hmm... So the idea would be to try and decode to AccountRlp
or an rlped storage value and display that if it's successful right?
Yeah. Could also be decoding the txn or the receipt if we need to debug those tries (though rarely happens). Does that seem worth it to you?
Yeah this seems like a nice-to-have and should be pretty trivial to implement (just four decode
attempts). The only potential issue that I see is we could mis-decode some non-evm trie value into a storage trie slot, just since the value type is rlp(U256)
, but I don't think that this probably really matters that much.
The trie diff tool will output something like this currently (added formatting for readability)
It would be nice if it was displaying the
Decoded value
along with the currentlyEncoded value
, which in this case could look like: