From e17f4e2a32d65cef198b3afebea71c1fb1d0ca83 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Fri, 8 Nov 2024 14:04:33 +1300 Subject: [PATCH] fix --- Blockchain/Sources/Blockchain/State/StateLayer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blockchain/Sources/Blockchain/State/StateLayer.swift b/Blockchain/Sources/Blockchain/State/StateLayer.swift index 6031e569..77838748 100644 --- a/Blockchain/Sources/Blockchain/State/StateLayer.swift +++ b/Blockchain/Sources/Blockchain/State/StateLayer.swift @@ -208,7 +208,7 @@ public struct StateLayer: @unchecked Sendable { get { changes[ StateKeys.ServiceAccountPreimageInfoKey(index: index, hash: hash, length: length) - ]!.value()! + ]?.value() } set { changes[StateKeys.ServiceAccountPreimageInfoKey(index: index, hash: hash, length: length)] = .init(newValue)