From 08392944e71d774abf648139f1b8a116dd15b0d2 Mon Sep 17 00:00:00 2001 From: toml01 <7473870+toml01@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:36:12 +0300 Subject: [PATCH] fix nitro tests --- hooks/hooks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/hooks.go b/hooks/hooks.go index bbfecdb..b70119f 100644 --- a/hooks/hooks.go +++ b/hooks/hooks.go @@ -155,7 +155,9 @@ func (h FheOSHooksImpl) EvmCallEnd(evmSuccess bool) { } } - fheos.State.RandomCounter = 0 + if fheos.State != nil { + fheos.State.RandomCounter = 0 + } } func shouldIgnoreContract(caller common.Address, addr common.Address) bool {