core/state: method docs

This commit is contained in:
Martin Holst Swende 2024-04-24 13:11:58 +02:00
parent 29ef67ccfc
commit 56352c242d
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 2 additions and 0 deletions

View file

@ -145,6 +145,7 @@ func (al *accessList) Equal(other *accessList) bool {
}) })
} }
// PrettyPrint prints the contents of the access list in a human-readable form
func (al *accessList) PrettyPrint() string { func (al *accessList) PrettyPrint() string {
out := new(strings.Builder) out := new(strings.Builder)
var sortedAddrs []common.Address var sortedAddrs []common.Address

View file

@ -67,6 +67,7 @@ func (t transientStorage) Copy() transientStorage {
return storage return storage
} }
// PrettyPrint prints the contents of the access list in a human-readable form
func (t transientStorage) PrettyPrint() string { func (t transientStorage) PrettyPrint() string {
out := new(strings.Builder) out := new(strings.Builder)
var sortedAddrs []common.Address var sortedAddrs []common.Address