Skip to content

Commit

Permalink
use ipfs node url instead of gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Nov 12, 2024
1 parent d19e191 commit 9da8763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/adapter/adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Adapter', () => {
DID.parse('did:polygonid:polygon:amoy:2qZYiH9CFMoo6oTjSEot3qzkHFHhjLRLKp8yfwCYng')
);
const adapter = new Adapter(RPC_URL, issuerDid, {
ipfsGatewayURL: IPFS_URL
ipfsNodeURL: IPFS_URL
});
const cred = await adapter.getCredential(userId, BigInt(0));
expect(W3CCredential.fromJSON(balanceCredentialIpfsSchema)).to.deep.equal(cred);
Expand Down
3 changes: 2 additions & 1 deletion tests/adapter/onchain-non-merklized-issuer-adapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { expect } from 'chai';
import w3cHttpSchemaExpect from './testdata/golang_http_schema.json';
import w3cIpfsSchemaExpect from './testdata/golang_ipfs_schema.json';
import { W3CCredential } from '../../src/verifiable';
import { IPFS_URL } from '../helpers';

const chainInfo = (did: DID): { contractAddress: string; chainId: number } => {
const issuerId = DID.idFromDID(did);
Expand Down Expand Up @@ -162,7 +163,7 @@ describe('Convertor v0.0.1', () => {
chainId,
issuerDid,
{
ipfsGatewayURL: 'https://ipfs.io'
ipfsNodeURL: IPFS_URL
}
);
const w3cCredential = await adapter.convertOnChainInfoToW3CCredential(
Expand Down

0 comments on commit 9da8763

Please sign in to comment.