Skip to content

Commit

Permalink
Fixing missing override on EVM DeletegateCall instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Dec 23, 2024
1 parent 037ff11 commit 1943c76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Fixed
- DelegateCall was missing the check on prank override

## [0.54.2] - 2024-12-12

## Fixed
Expand Down
7 changes: 5 additions & 2 deletions src/EVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,12 @@ exec1 = do
Just xTo' ->
case gasTryFrom xGas of
Left _ -> vmError IllegalOverflow
Right gas ->
Right gas -> do
overrideC <- use $ #state % #overrideCaller
delegateCall this gas xTo' self (Lit 0) xInOffset xInSize xOutOffset xOutSize xs $
\_ -> touchAccount self
\_ -> do
zoom #state $ assign #caller $ fromMaybe self overrideC
touchAccount self
_ -> underrun

OpCreate2 -> notStatic $
Expand Down

0 comments on commit 1943c76

Please sign in to comment.