UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

15 lines 494 B
import { useEFXContracts } from "../../utils/state"; // TODO: This does not seem to be working as expected export const getAvatar = async ({ client, account }) => { const { dao } = useEFXContracts(client); const { provider } = client; const response = await provider.v1.chain.get_table_rows({ code: dao, scope: account, table: "avatar", limit: 1, }); const [avatar] = response.rows; return avatar; }; //# sourceMappingURL=getAvatar.js.map