Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Mar 25, 2024
1 parent b7542be commit 12cffd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema-encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export class SchemaEncoder {
schemaItem.type === 'bytes32' && schemaItem.name === 'ipfsHash'
? SchemaEncoder.decodeIpfsValue(value as string)
: schemaItem.type === 'bytes32' && typeof value === 'string' && !isBytesLike(value)
? encodeBytes32String(value)
: value
? encodeBytes32String(value)
: value
);
}

Expand Down

0 comments on commit 12cffd2

Please sign in to comment.