From: Ardis Lu Date: Wed, 25 Feb 2026 08:01:08 +0000 (-0800) Subject: Fix missing +1 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8b94bb56c3de7aca1faa2cdfd3b65ff76baaf025;p=solc-metadata Fix missing +1 --- diff --git a/index.js b/index.js index cce9fea..4c3024e 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ function decodeCBOR(cbor) { let structure; if (byte >= 0x40 && byte <= 0x57) { // bytes const len = byte - 0x40; - const bytes = cbor.slice(i + 1, i + len); + const bytes = cbor.slice(i + 1, i + 1 + len); i += len; structure = bytes; }