add back some func/struct descriptor comments

This commit is contained in:
Jared Wasinger 2026-05-12 09:56:22 -04:00
parent f615a624fb
commit 3eafb4ea10

View file

@ -526,6 +526,7 @@ func (r *stateReaderWithStats) GetStateStats() StateReaderStats {
}
}
// reader aggregates a code reader and a state reader into a single object.
type reader struct {
ContractCodeReader
StateReader
@ -534,6 +535,7 @@ type reader struct {
codeLoaded sync.Map // common.Address → int (first-seen len(code))
}
// newReader constructs a reader with the supplied code reader and state reader.
func newReader(codeReader ContractCodeReader, stateReader StateReader) *reader {
return &reader{
ContractCodeReader: codeReader,