Skip to content

Commit

Permalink
check response before checking internal responses (0xPolygonHermez#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
tclemos authored Mar 21, 2023
1 parent ce891c3 commit 2ac0468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ func (s *State) ProcessUnsignedTransaction(ctx context.Context, tx *types.Transa
if err != nil {
result.Err = err
}
if response.Responses[0] != nil {
if response != nil && response.Responses[0] != nil {
r := response.Responses[0]
result.ReturnValue = r.ReturnValue
result.GasLeft = r.GasLeft
Expand Down

0 comments on commit 2ac0468

Please sign in to comment.