From 50a36d2a6e8b8d07de9bbdb604e4f4b5eb3e3fe3 Mon Sep 17 00:00:00 2001 From: Irzhy Ranaivoarivony Date: Tue, 31 Jan 2023 22:19:32 +0300 Subject: [PATCH] Update index.ts juste added more data type support that I've encountered issues --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 40b91ed..544903a 100644 --- a/index.ts +++ b/index.ts @@ -137,7 +137,7 @@ function generatePacketHashGetters (types, typeName, fields, packetHashGetters = } function getEncodedValueFor (field) { - const basicEncodableTypes = ['address', 'bool', 'bytes32', 'int', 'uint', 'uint256', 'string']; + const basicEncodableTypes = ['address', 'bool', 'bytes32', 'int', 'uint', 'uint256', 'string', 'bytes16', 'bytes8', 'bytes4', 'bytes2', 'int256']; const hashedTypes = ['bytes']; if (basicEncodableTypes.includes(field.type)) { return `_input.${field.name}`;