From 623a21cb6d7380836eb55ada79bd0db8aa1cf9ca Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 31 Mar 2022 19:23:19 +0200 Subject: [PATCH] minor --- eth/tracers/logger/logger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go index fb803ae8ed0d..a55135eab589 100644 --- a/eth/tracers/logger/logger.go +++ b/eth/tracers/logger/logger.go @@ -155,14 +155,14 @@ func (l *StructLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s l.env.Cancel() return } - - memory := scope.Memory - stack := scope.Stack - contract := scope.Contract // check if already accumulated the specified number of logs if l.cfg.Limit != 0 && l.cfg.Limit <= len(l.logs) { return } + + memory := scope.Memory + stack := scope.Stack + contract := scope.Contract // Copy a snapshot of the current memory state to a new buffer var mem []byte if l.cfg.EnableMemory {