diff --git a/core/state_transition.go b/core/state_transition.go index feadff5e892..52141f37dbe 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -278,7 +278,7 @@ func (st *StateTransition) preCheck(gasBailout bool) error { if err != nil { return fmt.Errorf("%w: %w", ErrStateTransitionFailed, err) } - if ok { + if !ok { return fmt.Errorf("%w: address %v, codehash: %s", ErrSenderNoEOA, st.msg.From().Hex(), codeHash) } diff --git a/tests/exec_spec_test.go b/tests/exec_spec_test.go index e93e660f97b..04408000317 100644 --- a/tests/exec_spec_test.go +++ b/tests/exec_spec_test.go @@ -14,11 +14,12 @@ // You should have received a copy of the GNU Lesser General Public License // along with Erigon. If not, see . -//go:build integration +///go:build integration package tests import ( + "fmt" "path/filepath" "testing"