Skip to content

Commit

Permalink
Merge pull request #982 from alleslabs/fix/get-account-data-lcd
Browse files Browse the repository at this point in the history
[CFE-526]: Fix(utils): support icns in account osmosis lite version
  • Loading branch information
evilpeach committed Jun 19, 2024
2 parents c25a63b + a6c93d6 commit b258cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#982](https://github.com/alleslabs/celatone-frontend/pull/982) Support Icns in account osmosis lite version
- [#973](https://github.com/alleslabs/celatone-frontend/pull/973) Remove overview text from landing page title
- [#967](https://github.com/alleslabs/celatone-frontend/pull/967) Utilize consensus address for better consistency
- [#963](https://github.com/alleslabs/celatone-frontend/pull/963) Add separator between token in tx message
Expand Down
5 changes: 4 additions & 1 deletion src/lib/services/account/lcd.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from "axios";

import { getIcnsNamesByAddressLcd } from "../name/lcd";
import type { AccountData } from "../types";
import type { BechAddr } from "lib/types";

export const getAccountDataLcd = async (
endpoint: string,
address: BechAddr
): Promise<AccountData> => {
const icns = await getIcnsNamesByAddressLcd(endpoint, address);

// TODO: Implement this function
return {
projectInfo: null,
publicInfo: null,
icns: null,
icns,
};
};

0 comments on commit b258cc5

Please sign in to comment.