Skip to content

Commit

Permalink
fix nil evaluation on pool.StoreTx
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor committed Oct 24, 2023
1 parent 3164af4 commit 958a41f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ func (p *Pool) preExecuteTx(ctx context.Context, tx types.Transaction) (preExecu
} else {
response.isOOC = isOOC
response.isOOG = isOOG
if processBatchResponse.Responses != nil && len(processBatchResponse.Responses) > 0 {
response.usedZkCounters = processBatchResponse.UsedZkCounters
response.txResponse = processBatchResponse.Responses[0]
}
return response, nil
}
}
Expand Down
2 changes: 1 addition & 1 deletion state/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ func (s *State) PreProcessTransaction(ctx context.Context, tx *types.Transaction

response, err := s.internalProcessUnsignedTransaction(ctx, tx, sender, nil, false, dbTx)
if err != nil {
return nil, err
return response, err
}

return response, nil
Expand Down

0 comments on commit 958a41f

Please sign in to comment.