Skip to content

Commit

Permalink
Feat: removed unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Oct 3, 2023
1 parent 6b7a3c6 commit 58b7668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protocol/engine/mempool/tests/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ func (V *VM) StateReferences(transaction mempool.Transaction) ([]mempool.StateRe
return transaction.(*Transaction).Inputs()

Check failure on line 14 in pkg/protocol/engine/mempool/tests/vm.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] pkg/protocol/engine/mempool/tests/vm.go#L14

type assertion must be checked (forcetypeassert)
Raw output
pkg/protocol/engine/mempool/tests/vm.go:14:9: type assertion must be checked (forcetypeassert)
	return transaction.(*Transaction).Inputs()
	       ^
}

func (V *VM) ValidateSignatures(signedTransaction mempool.SignedTransaction, resolvedInputs []mempool.State) (executionContext context.Context, err error) {
func (V *VM) ValidateSignatures(_ mempool.SignedTransaction, _ []mempool.State) (executionContext context.Context, err error) {
return context.Background(), nil
}

func (V *VM) Execute(executionContext context.Context, transaction mempool.Transaction) (outputs []mempool.State, err error) {
func (V *VM) Execute(_ context.Context, transaction mempool.Transaction) (outputs []mempool.State, err error) {
typedTransaction, ok := transaction.(*Transaction)
if !ok {
return nil, ierrors.New("invalid transaction type in MockedVM")
Expand Down

0 comments on commit 58b7668

Please sign in to comment.