Skip to content

Commit

Permalink
Remove unused buildIpfsUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth committed Jul 24, 2024
1 parent 243cfa7 commit 6dfed81
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/utils/aragonGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,6 @@ class AragonGateway {
return rpcUrl;
};

buildIpfsUrl = (
chainIdOrNetwork: number | SupportedNetworks
): string | null => {
const network = this.parseNetwork(chainIdOrNetwork);

if (network == null || network === 'unsupported') {
return null;
}

const {isTestnet} = CHAIN_METADATA[network];
const ipfsEnv = isTestnet ? 'test' : 'prod';
const ipfsUrl = `${this.baseUrl}/v${this.ipfsVersion}/ipfs/${ipfsEnv}/api/v0`;

return ipfsUrl;
};

private parseNetwork = (
chainIdOrNetwork: number | SupportedNetworks
): SupportedNetworks | undefined => {
Expand Down

0 comments on commit 6dfed81

Please sign in to comment.