From a170fe4a953b5344db8f1357f8ed49dff74a8f33 Mon Sep 17 00:00:00 2001 From: tclemos Date: Mon, 20 Mar 2023 17:27:11 -0300 Subject: [PATCH] check response before checking internal responses --- state/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index 92812d9995..6f26586333 100644 --- a/state/state.go +++ b/state/state.go @@ -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