Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
juste added more data type support that I've encountered issues
  • Loading branch information
irzhywau authored Jan 31, 2023
1 parent 337b2f8 commit 50a36d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 50a36d2

Please sign in to comment.