fix: revert usage of toBytes to fix compatibility (#16253)

This commit is contained in:
Justin Starry
2021-03-31 14:51:41 +08:00
committed by GitHub
parent 67b747938f
commit c344702fa0
3 changed files with 18 additions and 18 deletions

View File

@@ -569,7 +569,7 @@ export class Transaction {
}
} else {
if (
!nacl.sign.detached.verify(signData, signature, publicKey.toBytes())
!nacl.sign.detached.verify(signData, signature, publicKey.toBuffer())
) {
return false;
}