Skip to content

Commit

Permalink
feat(icp): generate-wallet: return principal as well for ease of use
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Aug 24, 2024
1 parent ab4e241 commit 387e7db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handler/icp/utils/generateWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export default function icpGw() {
return Promise.resolve({
publicKey: Buffer.from(publicKey).toString("hex"),
privateKey: Buffer.from(privateKey).toString("hex"),
principal: identity.getPrincipal().toText(),
});
}

0 comments on commit 387e7db

Please sign in to comment.