Skip to content

Commit

Permalink
Small fix that can help in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Jan 13, 2025
1 parent b122cbb commit d9fe512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ canFetchAccount addr = do
use (#env % #contracts % at addr) >>= \case
Just _ -> pure True
Nothing -> case addr of
LitAddr 0 -> pure False -- zero address is not a valid contract, but may occur in some cases
LitAddr _ -> pure True
SymAddr _ -> pure False
GVar _ -> internalError "GVar not allowed here"
Expand Down

0 comments on commit d9fe512

Please sign in to comment.