Skip to content

Commit baf1249

Browse files
author
Aleix Morgadas
committed
changed PublicAccount, convert data input hexa no matter the data input format
1 parent 24ee385 commit baf1249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/account/PublicAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class PublicAccount {
8181
const convertedSignature = convert.hexToUint8(signature);
8282

8383
// Convert to Uint8Array
84-
const convertedData = convert.hexToUint8(convert.isHexString(data) ? data : convert.utf8ToHex(data));
84+
const convertedData = convert.hexToUint8(convert.utf8ToHex(data));
8585

8686
return KeyPair.verify(convert.hexToUint8(this.publicKey), convertedData, convertedSignature);
8787
}

0 commit comments

Comments
 (0)