We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5804f08 commit 7ce8714Copy full SHA for 7ce8714
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