Skip to content

Commit d9a0bf3

Browse files
author
Aleix Morgadas
committed
CHANGED PublicAccount converting publicKey string to uint8array
1 parent bf2a92d commit d9a0bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/model/account/PublicAccount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { KeyPair, convert } from 'nem2-library';
17+
import { convert, KeyPair } from 'nem2-library';
1818
import { NetworkType } from '../blockchain/NetworkType';
1919
import { Address } from './Address';
2020

@@ -89,7 +89,7 @@ export class PublicAccount {
8989
// Convert to Uint8Array
9090
convertedData = convert.hexToUint8(convertedData);
9191

92-
return KeyPair.verify(publicAccount.publicKey, convertedData, convertedSignature);
92+
return KeyPair.verify(convert.hexToUint8(publicAccount.publicKey), convertedData, convertedSignature);
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)