We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243cfa7 commit 6dfed81Copy full SHA for 6dfed81
src/utils/aragonGateway.ts
@@ -68,22 +68,6 @@ class AragonGateway {
68
return rpcUrl;
69
};
70
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
87
private parseNetwork = (
88
chainIdOrNetwork: number | SupportedNetworks
89
): SupportedNetworks | undefined => {
0 commit comments