From f03531d97c999954a626ef63bc5bbae51a7b90f3 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Tue, 18 Jul 2023 18:52:55 +0100 Subject: [PATCH] fix(schema-type): fix byte lengths for uint64/int64 (#1175) --- .changeset/rare-planes-draw.md | 5 +++++ packages/schema-type/src/typescript/staticAbiTypes.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/rare-planes-draw.md diff --git a/.changeset/rare-planes-draw.md b/.changeset/rare-planes-draw.md new file mode 100644 index 0000000000..9c651355fd --- /dev/null +++ b/.changeset/rare-planes-draw.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/schema-type": patch +--- + +Fix byte lengths for `uint64` and `int64`. diff --git a/packages/schema-type/src/typescript/staticAbiTypes.ts b/packages/schema-type/src/typescript/staticAbiTypes.ts index 23ce59e196..5c27a347f3 100644 --- a/packages/schema-type/src/typescript/staticAbiTypes.ts +++ b/packages/schema-type/src/typescript/staticAbiTypes.ts @@ -122,7 +122,7 @@ export const staticAbiTypeToByteLength = { uint40: 5, uint48: 6, uint56: 7, - uint64: 9, + uint64: 8, uint72: 9, uint80: 10, uint88: 11, @@ -155,7 +155,7 @@ export const staticAbiTypeToByteLength = { int40: 5, int48: 6, int56: 7, - int64: 9, + int64: 8, int72: 9, int80: 10, int88: 11,