Skip to content

Commit

Permalink
chore: fix some function names (#430)
Browse files Browse the repository at this point in the history
Signed-off-by: highcloudwind <[email protected].>
  • Loading branch information
highcloudwind authored Sep 6, 2024
1 parent 4e56d69 commit 7816944
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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

0 comments on commit 7816944

Please sign in to comment.