From c1037d79056e58cd02112ed801b48857cd875c86 Mon Sep 17 00:00:00 2001 From: CedarMist <134699267+CedarMist@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:58:22 +0100 Subject: [PATCH] contracts: ignore unknown keys in CBOR receipt responses --- contracts/contracts/Subcall.sol | 6 ------ 1 file changed, 6 deletions(-) diff --git a/contracts/contracts/Subcall.sol b/contracts/contracts/Subcall.sol index d004e6ad..928aae97 100644 --- a/contracts/contracts/Subcall.sol +++ b/contracts/contracts/Subcall.sol @@ -299,9 +299,6 @@ library Subcall { (offset, endReceipt) = _parseCBORUint64(result, offset); hasReceipt = true; - } else { - // TODO: skip unknown keys & values? For forward compatibility - revert InvalidKey(); } } @@ -328,9 +325,6 @@ library Subcall { (offset, amount) = _parseCBORUint128(result, offset); hasAmount = true; - } else { - // TODO: skip unknown keys & values? For forward compatibility - revert InvalidKey(); } }