diff --git a/src/api/warp.ts b/src/api/warp.ts index c0fc3e3..98afeae 100644 --- a/src/api/warp.ts +++ b/src/api/warp.ts @@ -121,7 +121,8 @@ class ContractReadInteractionCacheKey { const contractReadInteractionCache: ReadThroughPromiseCache< ContractReadInteractionCacheKey, { - result: any; + result: unknown; + input: unknown; evaluationOptions: Partial; } > = new ReadThroughPromiseCache({ @@ -382,7 +383,7 @@ export async function readThroughToContractReadInteraction( const { result, error, errorMessage } = readInteractionResult; - if (error) { + if (error || errorMessage) { logger?.error('Read interaction failed!', { contractTxId, cacheKey: cacheKey.toString(),