@solana/web3.js 1.66.3 → 1.66.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.66.3",
3
+ "version": "1.66.4",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
@@ -699,14 +699,17 @@ export class Transaction {
699
699
  /**
700
700
  * @internal
701
701
  */
702
- _verifySignatures(signData: Buffer, requireAllSignatures: boolean): boolean {
702
+ _verifySignatures(
703
+ signData: Uint8Array,
704
+ requireAllSignatures: boolean,
705
+ ): boolean {
703
706
  for (const {signature, publicKey} of this.signatures) {
704
707
  if (signature === null) {
705
708
  if (requireAllSignatures) {
706
709
  return false;
707
710
  }
708
711
  } else {
709
- if (!verify(signature, signData, publicKey.toBuffer())) {
712
+ if (!verify(signature, signData, publicKey.toBytes())) {
710
713
  return false;
711
714
  }
712
715
  }