Skip to content

Commit

Permalink
sometimes contractNames are filepath:name, we have to account for that
Browse files Browse the repository at this point in the history
  • Loading branch information
samalws-tob committed Mar 7, 2024
1 parent 1e52008 commit a3625da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Echidna/Solidity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ filterFallbacks la lb contracts = Map.mapWithKey f
[] -> [fallback] -- No other alternative
ss' -> ss'
keysToIgnore = concatMap contractNameToCodehashes (la ++ lb)
contractNameToCodehashes name = map (.runtimeCodehash) $ filter (\c -> c.contractName == name) contracts
contractNameToCodehashes name = map (.runtimeCodehash) $ filter (\c -> last (T.splitOn ":" c.contractName) == name) contracts

prepareHashMaps
:: [FunctionSelector]
Expand Down

0 comments on commit a3625da

Please sign in to comment.