File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ export class PinataClient {
33
33
}
34
34
35
35
const responseData = response . data as PinFileToIPFSResponse ;
36
- return `ipfs://${ responseData . IpfsHash } ` ;
36
+ // usually platforms(wallets) should handle the gateway OR prefix usage but wallet doesnt at the moment.
37
+ // since this is an example, we can use it like below.
38
+ return `https://ipfs.io/ipfs/${ responseData . IpfsHash } ` ;
39
+ // return `ipfs://${responseData.IpfsHash}`;
37
40
}
38
41
39
42
async uploadJson ( json : object , fileName : string ) : Promise < string > {
@@ -60,7 +63,10 @@ export class PinataClient {
60
63
}
61
64
62
65
const responseData = response . data as PinFileToIPFSResponse ;
63
- return `ipfs://${ responseData . IpfsHash } ` ;
66
+ // usually platforms(wallets) should handle the gateway OR prefix usage but wallet doesnt at the moment.
67
+ // since this is an example, we can use it like below.
68
+ return `https://ipfs.io/ipfs/${ responseData . IpfsHash } ` ;
69
+ // return `ipfs://${responseData.IpfsHash}`;
64
70
}
65
71
}
66
72
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const CIS2_MULTI_CONTRACT_INFO: Cis2ContractInfo = {
36
36
moduleRef : new ModuleReference ( MULTI_CONTRACT_MODULE_REF ) ,
37
37
tokenIdByteSize : 1 ,
38
38
} ;
39
- export const IPFS_GATEWAY_URL = 'https://gateway.pinata.cloud /ipfs/' ;
39
+ export const IPFS_GATEWAY_URL = 'https://ipfs.io /ipfs/' ;
40
40
41
41
// Default value of the new marketplace contract init flag is false.
42
42
// It needs to be set as true in order to allow to create a new marketplace contract instance
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const CIS2_MULTI_CONTRACT_INFO: Cis2ContractInfo = {
12
12
moduleRef : new ModuleReference ( MULTI_CONTRACT_MODULE_REF ) ,
13
13
tokenIdByteSize : 1 ,
14
14
} ;
15
- export const IPFS_GATEWAY_URL = 'https://gateway.pinata.cloud /ipfs/' ;
15
+ export const IPFS_GATEWAY_URL = 'https://ipfs.io /ipfs/' ;
16
16
17
17
export const CONNCORDIUM_NODE_ENDPOINT = 'https://grpc.testnet.concordium.com' ;
18
18
export const CONCORDIUM_NODE_PORT = 20000 ;
You can’t perform that action at this time.
0 commit comments