Skip to content

Commit

Permalink
Rename kid to publicKeyHex
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nikitin committed Aug 9, 2023
1 parent 29b9ba7 commit 1caec01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ export function createMsgResourcePayloadToSign(payload: Partial<MsgCreateResourc
).finish()
}

export function getCosmosAccount(kid: string): string {
export function getCosmosAccount(publicKeyHex: string): string {
const { publicKeyConvert } = pkg
return toBech32('cheqd', rawSecp256k1PubkeyToRawAddress(publicKeyConvert(fromString(kid, 'hex'), true)))
return toBech32('cheqd', rawSecp256k1PubkeyToRawAddress(publicKeyConvert(fromString(publicKeyHex, 'hex'), true)))
}

export async function checkBalance(address: string, rpcAddress: string): Promise<readonly Coin[]> {
Expand Down

0 comments on commit 1caec01

Please sign in to comment.