We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5804f08 + 7ce8714 commit 1dfc9b7Copy full SHA for 1dfc9b7
src/chain/public-key.ts
@@ -73,7 +73,7 @@ export class PublicKey implements ABISerializableObject {
73
* This is suitable for cryptographic operations like verification.
74
*/
75
getCompressedKeyBytes(): Uint8Array {
76
- return this.type === KeyType.WA ? this.data.array.subarray(0, 33) : this.data.array
+ return this.type === KeyType.WA ? this.data.array.slice(0, 33) : this.data.array
77
}
78
79
equals(other: PublicKeyType) {
0 commit comments