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}`;