Skip to content

Commit 987627d

Browse files
avoid crashing when trying to do symbolic execution in fallback
1 parent 31d5ef3 commit 987627d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Echidna/SymExec/Exploration.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import Echidna.Worker (pushWorkerEvent)
4444
-- The Tx argument, if present, must have a .call value of type SolCall.
4545

4646
getTargetMethodFromTx :: (MonadIO m, MonadReader Echidna.Types.Config.Env m) => Tx -> SolcContract -> [String] -> m (Maybe Method)
47+
getTargetMethodFromTx (Tx { call = SolCall ("", _) }) _ _ = return Nothing
4748
getTargetMethodFromTx (Tx { call = SolCall (methodName, _) }) contract failedProperties = do
4849
env <- ask
4950
let allMethods = Map.assocs contract.abiMap

0 commit comments

Comments
 (0)