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 987627d commit d41ee32Copy full SHA for d41ee32
lib/Echidna/Onchain.hs
@@ -43,7 +43,9 @@ 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) -> putStrLn "Warning: cannot save RPC cache without a specified block number."
+ (_, Nothing) -> if (env.cfg.rpcUrl /= Nothing)
47
+ then putStrLn "Warning: cannot save RPC cache without a specified block number."
48
+ else pure ()
49
(Nothing, _) -> pure ()
50
51
rpcUrlEnv :: IO (Maybe Text)
0 commit comments