Skip to content

Commit

Permalink
Correct collection of coverage when there is a delegatecall (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrieco-tob authored Jun 30, 2023
1 parent dcc2387 commit 8ce9b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Echidna/Exec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ execTxWithCov tx = do

-- | Get the current contract's bytecode metadata
currentMeta vm = fromMaybe (error "no contract information on coverage") $ do
buffer <- vm ^? #env % #contracts % at vm.state.contract % _Just % bytecode
buffer <- vm ^? #env % #contracts % at vm.state.codeContract % _Just % bytecode
let bc = forceBuf buffer
pure $ lookupBytecodeMetadata cache bc

Expand Down

0 comments on commit 8ce9b49

Please sign in to comment.