Skip to content

Commit

Permalink
remove copy of non-pointer type (#12941)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Dec 2, 2024
1 parent aa54d1d commit 3f6f923
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/state/state_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ func (so *stateObject) setState(key *libcommon.Hash, value uint256.Int) {
// updateTrie writes cached storage modifications into the object's storage trie.
func (so *stateObject) updateTrie(stateWriter StateWriter) error {
for key, value := range so.dirtyStorage {
value := value
original := so.blockOriginStorage[key]
so.originStorage[key] = value
if err := stateWriter.WriteAccountStorage(so.address, so.data.GetIncarnation(), &key, &original, &value); err != nil {
Expand Down

0 comments on commit 3f6f923

Please sign in to comment.