Skip to content

Commit

Permalink
Always save address of a deployed contract in the valueSet (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas authored Oct 8, 2024
1 parent e018eb3 commit 66e60ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzzing/fuzzer_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ func (fw *FuzzerWorker) getNewCorpusCallSequenceWeight() *big.Int {
func (fw *FuzzerWorker) onChainContractDeploymentAddedEvent(event chain.ContractDeploymentsAddedEvent) error {
// Do not track the deployed contract if the contract deployment was a dynamic one and testAllContracts is false
if !fw.fuzzer.config.Fuzzing.Testing.TestAllContracts && event.DynamicDeployment {
// Add the contract address to our value set so our generator can use it in calls.
fw.valueSet.AddAddress(event.Contract.Address)
return nil
}

Expand Down

0 comments on commit 66e60ea

Please sign in to comment.