From 1d22729e73787cea8828d79620737ca4af009e41 Mon Sep 17 00:00:00 2001 From: Stefan Iliev <46542846+StefanIliev545@users.noreply.github.com> Date: Tue, 21 Mar 2023 12:46:00 +0100 Subject: [PATCH] Fixed nil ptr case. (#1172) Co-authored-by: StefanIliev545 --- go/enclave/enclave.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/enclave/enclave.go b/go/enclave/enclave.go index 4bbee1de39..d069ca7f4b 100644 --- a/go/enclave/enclave.go +++ b/go/enclave/enclave.go @@ -260,8 +260,9 @@ func (e *enclaveImpl) SubmitL1Block(block types.Block, receipts types.Receipts, rollup, err := e.rollupManager.CreateRollup() if err != nil { e.logger.Error("Failed to produce rollup", log.ErrKey, err) + } else { + blockSubmissionResponse.ProducedRollup = rollup.ToExtRollup(e.transactionBlobCrypto) } - blockSubmissionResponse.ProducedRollup = rollup.ToExtRollup(e.transactionBlobCrypto) } e.logger.Info("produceBlockSubmissionResponse successful", log.BlockHeightKey, block.Number(), log.BlockHashKey, block.Hash(),