Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some function names #430

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/test_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func TestChainCloning(t *testing.T) {
})
}

// TestCallSequenceReplayMatchSimple creates a TestChain, sends some messages to it, then creates another chain which
// TestChainCallSequenceReplayMatchSimple creates a TestChain, sends some messages to it, then creates another chain which
// it replays the same sequence on. It ensures that the ending state is the same.
// Note: this does not set block timestamps or other data that might be non-deterministic.
// This does not test replaying with a previous call sequence with different timestamps, etc. It expects the TestChain
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/calls/call_sequence_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func ExecuteCallSequence(chain *chain.TestChain, callSequence CallSequence) (Cal
return ExecuteCallSequenceIteratively(chain, fetchElementFunc, nil)
}

// ExecuteCallSequenceWithTracer attaches an executiontracer.ExecutionTracer to ExecuteCallSequenceIteratively and attaches execution traces to the call sequence elements.
// ExecuteCallSequenceWithExecutionTracer attaches an executiontracer.ExecutionTracer to ExecuteCallSequenceIteratively and attaches execution traces to the call sequence elements.
func ExecuteCallSequenceWithExecutionTracer(testChain *chain.TestChain, contractDefinitions contracts.Contracts, callSequence CallSequence, verboseTracing bool) (CallSequence, error) {
// Create a new execution tracer
executionTracer := executiontracer.NewExecutionTracer(contractDefinitions, testChain.CheatCodeContracts())
Expand Down
4 changes: 2 additions & 2 deletions fuzzing/corpus/corpus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func getMockSimpleCorpus(minSequences int, maxSequences, minBlocks int, maxBlock
return corpus, nil
}

// getMockSimpleCorpusEntry creates a mock CorpusCallSequence with numBlocks blocks for testing
// getMockCallSequence creates a mock CorpusCallSequence with numBlocks blocks for testing
func getMockCallSequence(size int) calls.CallSequence {
cs := make(calls.CallSequence, size)
for i := 0; i < size; i++ {
Expand All @@ -40,7 +40,7 @@ func getMockCallSequence(size int) calls.CallSequence {
return cs
}

// getMockSimpleBlockBlock creates a mock CorpusBlock with numTransactions transactions and receipts for testing
// getMockCallSequenceElement creates a mock CorpusBlock with numTransactions transactions and receipts for testing
func getMockCallSequenceElement() *calls.CallSequenceElement {
return &calls.CallSequenceElement{
Contract: nil,
Expand Down
2 changes: 1 addition & 1 deletion fuzzing/fuzzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func TestDeploymentsWithPayableConstructors(t *testing.T) {
})
}

// TestDeploymentsInnerDeployments runs a test to ensure dynamically deployed contracts are detected by the Fuzzer and
// TestDeploymentsSelfDestruct runs a test to ensure dynamically deployed contracts are detected by the Fuzzer and
// their properties are tested appropriately.
func TestDeploymentsSelfDestruct(t *testing.T) {
// These contracts provide functions to deploy inner contracts which have properties that will produce a failure.
Expand Down