Skip to content

Commit

Permalink
removed redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr2github committed May 14, 2024
1 parent 861070e commit 112a3b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/hooks/useDaoDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ async function fetchDaoDetails(
redirectDaoToAddress(address);
}

// Note: SDK doesn't support ens names in L2 chains so we need to resolve the address first
// const daoDetails = await client.methods.getDao(daoAddressOrEns.toLowerCase());

const {dao} = await request<{dao: SubgraphDao}>(
SUBGRAPH_API_URL[network]!,
QueryDao,
Expand All @@ -120,7 +117,6 @@ async function fetchDaoDetails(
);

const metadata = await ipfsService.getData(dao.metadata);

const daoDetails = toDaoDetails(dao, metadata);

const avatar = daoDetails?.metadata.avatar;
Expand Down
3 changes: 2 additions & 1 deletion src/services/ipfs/ipfsService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {resolveIpfsCid} from '@aragon/sdk-client-common';
import {IPinDataProps} from './ipfsService.api';
import {pinataAPI} from 'utils/constants';

class IpfsService {
constructor(
Expand All @@ -23,7 +24,7 @@ class IpfsService {
pinData = async (data: IPinDataProps) => {
const processedData = await this.processData(data);

const res = await fetch('https://api.pinata.cloud/pinning/pinJSONToIPFS', {
const res = await fetch(pinataAPI, {
method: 'POST',
headers: {
Authorization: 'Bearer ' + this.apiKey,
Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const AppMetadata = {
export const FEEDBACK_FORM =
'https://aragonassociation.atlassian.net/servicedesk/customer/portal/3';

export const pinataAPI = 'https://api.pinata.cloud/pinning/pinJSONToIPFS';

export const SUBGRAPH_API_URL: SubgraphNetworkUrl = {
arbitrum:
'https://subgraph.satsuma-prod.com/qHR2wGfc5RLi6/aragon/osx-arbitrum/version/v1.4.0/api',
Expand Down
2 changes: 0 additions & 2 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,6 @@ export type SubgraphMultisigProposalBase = SubgraphProposalBase & {
minApprovals: number;
approvalReached: boolean;
approvers: {id: string}[];
// TODO change on subgraph fix
// approvers: SubgraphMultisigApproversListItem[];
};

export type SubgraphMultisigProposalListItem = SubgraphMultisigProposalBase;
Expand Down

0 comments on commit 112a3b6

Please sign in to comment.