Skip to content

Commit 6dfed81

Browse files
committed
Remove unused buildIpfsUrl function
1 parent 243cfa7 commit 6dfed81

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/utils/aragonGateway.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,6 @@ class AragonGateway {
6868
return rpcUrl;
6969
};
7070

71-
buildIpfsUrl = (
72-
chainIdOrNetwork: number | SupportedNetworks
73-
): string | null => {
74-
const network = this.parseNetwork(chainIdOrNetwork);
75-
76-
if (network == null || network === 'unsupported') {
77-
return null;
78-
}
79-
80-
const {isTestnet} = CHAIN_METADATA[network];
81-
const ipfsEnv = isTestnet ? 'test' : 'prod';
82-
const ipfsUrl = `${this.baseUrl}/v${this.ipfsVersion}/ipfs/${ipfsEnv}/api/v0`;
83-
84-
return ipfsUrl;
85-
};
86-
8771
private parseNetwork = (
8872
chainIdOrNetwork: number | SupportedNetworks
8973
): SupportedNetworks | undefined => {

0 commit comments

Comments
 (0)