Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthborderwala committed Sep 11, 2024
1 parent 22bb5fc commit 222db09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/graz/src/actions/wallet/initia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ const getDirectSignDoc = (signDoc: SignDirectParams[2]) => {
};
};

const getAddressPreview = (address: string) => {
return `${address.slice(0, 6)}...${address.slice(-6)}`;
};

export const getInitia = (): Wallet => {
if (typeof window.initia !== "undefined") {
const initia = window.initia;
Expand Down Expand Up @@ -71,7 +75,7 @@ export const getInitia = (): Wallet => {
})();

return {
name: "Initia",
name: getAddressPreview(account.address),
algo: account.algo,
pubKey: account.pubkey,
bech32Address: account.address,
Expand Down

0 comments on commit 222db09

Please sign in to comment.