Skip to content

Commit

Permalink
Add a return type to the pubKeyToRawAddress function
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecuesta committed Dec 9, 2024
1 parent f658675 commit 9d423c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/utils/pub_key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function rawSecp256k1PubKeyToRawAddress(pubKey: Uint8Array): Uint8Array {
return ripemd160(sha256(pk));
}

function pubKeyToRawAddress(type: string, pubKey: Uint8Array, prefix?: string) {
function pubKeyToRawAddress(type: string, pubKey: Uint8Array, prefix?: string): string {
switch (type) {
case Ed25519:
return toHex(rawEd25519PubKeyToRawAddress(pubKey)).toUpperCase();
Expand Down

0 comments on commit 9d423c3

Please sign in to comment.