Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hudem1 committed Feb 25, 2025
1 parent 8c0f55a commit 9e0e9ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rpc/v6/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func adaptFeederBlockTrace(block *BlockWithTxs, blockTrace *starknet.BlockTrace)
feederTrace := &blockTrace.Traces[index]

trace := TransactionTrace{
Type: TransactionType(block.Transactions[index].Type),
Type: block.Transactions[index].Type,
FeeTransferInvocation: adaptFeederFunctionInvocation(feederTrace.FeeTransferInvocation),
ValidateInvocation: adaptFeederFunctionInvocation(feederTrace.ValidateInvocation),
}
Expand Down
1 change: 0 additions & 1 deletion rpc/v6/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func (h *Handler) SimulateTransactions(id BlockID, transactions []BroadcastedTra
return h.simulateTransactions(id, transactions, simulationFlags, false)
}

//nolint:funlen
func (h *Handler) simulateTransactions(id BlockID, transactions []BroadcastedTransaction,
simulationFlags []SimulationFlag, errOnRevert bool,
) ([]SimulatedTransaction, *jsonrpc.Error) {
Expand Down
2 changes: 1 addition & 1 deletion rpc/v6/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (h *Handler) TraceBlockTransactions(ctx context.Context, id BlockID) ([]Tra
return h.traceBlockTransactions(ctx, block)
}

func (h *Handler) traceBlockTransactions(ctx context.Context, block *core.Block, //nolint: gocyclo, funlen
func (h *Handler) traceBlockTransactions(ctx context.Context, block *core.Block, //nolint: gocyclo
) ([]TracedBlockTransaction, *jsonrpc.Error) {
isPending := block.Hash == nil
if !isPending {
Expand Down
2 changes: 1 addition & 1 deletion rpc/v7/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func adaptFeederBlockTrace(block *BlockWithTxs, blockTrace *starknet.BlockTrace)
feederTrace := &blockTrace.Traces[index]

trace := TransactionTrace{
Type: TransactionType(block.Transactions[index].Type),
Type: block.Transactions[index].Type,
FeeTransferInvocation: adaptFeederFunctionInvocation(feederTrace.FeeTransferInvocation),
ValidateInvocation: adaptFeederFunctionInvocation(feederTrace.ValidateInvocation),
}
Expand Down
2 changes: 1 addition & 1 deletion rpc/v8/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func adaptFeederBlockTrace(block *BlockWithTxs, blockTrace *starknet.BlockTrace)
feederTrace := &blockTrace.Traces[index]

trace := TransactionTrace{
Type: TransactionType(block.Transactions[index].Type),
Type: block.Transactions[index].Type,
FeeTransferInvocation: adaptFeederFunctionInvocation(feederTrace.FeeTransferInvocation),
ValidateInvocation: adaptFeederFunctionInvocation(feederTrace.ValidateInvocation),
}
Expand Down

0 comments on commit 9e0e9ad

Please sign in to comment.