Skip to content

Commit

Permalink
fix 7702 delegation check
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Dec 8, 2024
1 parent 6389256 commit ed4d5b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
3 changes: 2 additions & 1 deletion tests/exec_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

//go:build integration
///go:build integration

package tests

import (
"fmt"
"path/filepath"
"testing"

Expand Down

0 comments on commit ed4d5b0

Please sign in to comment.