From 0ec8dbd0e6de072ed16fdfabd94fd1cd9f7eef9f Mon Sep 17 00:00:00 2001 From: Evan Saulpaugh Date: Wed, 28 Aug 2024 14:33:06 -0500 Subject: [PATCH] minor refactor --- src/main/java/com/esaulpaugh/headlong/abi/ABIType.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/esaulpaugh/headlong/abi/ABIType.java b/src/main/java/com/esaulpaugh/headlong/abi/ABIType.java index f4fb012b..15f8563a 100644 --- a/src/main/java/com/esaulpaugh/headlong/abi/ABIType.java +++ b/src/main/java/com/esaulpaugh/headlong/abi/ABIType.java @@ -195,9 +195,8 @@ public final void encode(J value, ByteBuffer dest) { * @return the encoding */ public final ByteBuffer encodePacked(J value) { - validate(value); ByteBuffer dest = ByteBuffer.allocate(byteLengthPacked(value)); - encodePackedUnchecked(value, dest); + encodePacked(value, dest); dest.flip(); return dest; }