We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d41ee32 commit a2b2224Copy full SHA for a2b2224
lib/Echidna/Onchain.hs
@@ -43,9 +43,8 @@ saveRpcCache env = do
43
(Just dir, Just n) -> do
44
cache <- readMVar (env.fetchSession.sharedCache)
45
EVM.Fetch.saveCache dir (fromIntegral n) cache
46
- (_, Nothing) -> if (env.cfg.rpcUrl /= Nothing)
47
- then putStrLn "Warning: cannot save RPC cache without a specified block number."
48
- else pure ()
+ (_, Nothing) -> when (isJust (env.cfg.rpcUrl))
+ $ putStrLn "Warning: cannot save RPC cache without a specified block number."
49
(Nothing, _) -> pure ()
50
51
rpcUrlEnv :: IO (Maybe Text)
0 commit comments