Skip to content

Commit

Permalink
contracts: ignore unknown keys in CBOR receipt responses
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarMist committed Jul 1, 2024
1 parent c0b56fd commit c1037d7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contracts/contracts/Subcall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,6 @@ library Subcall {
(offset, endReceipt) = _parseCBORUint64(result, offset);

hasReceipt = true;
} else {
// TODO: skip unknown keys & values? For forward compatibility
revert InvalidKey();
}
}

Expand All @@ -328,9 +325,6 @@ library Subcall {
(offset, amount) = _parseCBORUint128(result, offset);

hasAmount = true;
} else {
// TODO: skip unknown keys & values? For forward compatibility
revert InvalidKey();
}
}

Expand Down

0 comments on commit c1037d7

Please sign in to comment.