From 56352c242dddf74c19cc9202621b8c50b4b37aef Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Wed, 24 Apr 2024 13:11:58 +0200 Subject: [PATCH] core/state: method docs --- core/state/access_list.go | 1 + core/state/transient_storage.go | 1 + 2 files changed, 2 insertions(+) diff --git a/core/state/access_list.go b/core/state/access_list.go index ad7ad38529..89815b0fa1 100644 --- a/core/state/access_list.go +++ b/core/state/access_list.go @@ -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 { out := new(strings.Builder) var sortedAddrs []common.Address diff --git a/core/state/transient_storage.go b/core/state/transient_storage.go index 735b03956a..e63db39eba 100644 --- a/core/state/transient_storage.go +++ b/core/state/transient_storage.go @@ -67,6 +67,7 @@ func (t transientStorage) Copy() transientStorage { return storage } +// PrettyPrint prints the contents of the access list in a human-readable form func (t transientStorage) PrettyPrint() string { out := new(strings.Builder) var sortedAddrs []common.Address