Skip to content

Commit

Permalink
Add explainer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ritave committed Oct 9, 2024
1 parent 217bfbf commit baccdca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {
const childNode = await node.derive(path);

return {
// BIP44Path is a readonly array, while request handler expects
// a normal array, we cast to string[] to resolve.
path: path as unknown as string[],
publicKey: add0x(childNode.publicKey),
};
Expand Down

0 comments on commit baccdca

Please sign in to comment.