From f74701264155d53dc387bc00fb9bcde664096bdd Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Mon, 8 Jan 2024 12:33:16 +0100 Subject: [PATCH] Require lexicographic ordering for metadata feat --- tips/TIP-0038/tip-0038.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tips/TIP-0038/tip-0038.md b/tips/TIP-0038/tip-0038.md index 295481a96..ecc199ff0 100644 --- a/tips/TIP-0038/tip-0038.md +++ b/tips/TIP-0038/tip-0038.md @@ -858,6 +858,7 @@ Feature: smart contract request parameters are encoded in the metadata field - Each `Key` in the `Entries` must consist only of bytes that are printable ASCII characters, that is, for each character `char` (interpreted as a byte) in the `Key` it must hold: `33 <= char <= 126`. - Each `Key` in the `Entries` must be unique. +- The `Entries` must be lexicographically ordered based on the `Key`. - `Entries Count` must be at least `1`. - The serialized size of the map, consisting of the serialized size of `Entries Count` plus the serialized size of all `Entries`, must not exceed `8192` bytes.