Skip to content

Commit 5bb0e0a

Browse files
Fix missing branch for compressed public key
1 parent 49c12d0 commit 5bb0e0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/snaps-rpc-methods/src/restricted/getBip32PublicKey.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ export function getBip32PublicKeyImplementation({
182182
cryptographicFunctions: getClientCryptography(),
183183
});
184184

185+
if (params.compressed) {
186+
return node.compressedPublicKey;
187+
}
188+
185189
return node.publicKey;
186190
}
187191

0 commit comments

Comments
 (0)