diff --git a/tests/adapter/adapter.test.ts b/tests/adapter/adapter.test.ts index 90901523..814fb636 100644 --- a/tests/adapter/adapter.test.ts +++ b/tests/adapter/adapter.test.ts @@ -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); diff --git a/tests/adapter/onchain-non-merklized-issuer-adapter.test.ts b/tests/adapter/onchain-non-merklized-issuer-adapter.test.ts index 8942e89b..30ef4c60 100644 --- a/tests/adapter/onchain-non-merklized-issuer-adapter.test.ts +++ b/tests/adapter/onchain-non-merklized-issuer-adapter.test.ts @@ -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); @@ -162,7 +163,7 @@ describe('Convertor v0.0.1', () => { chainId, issuerDid, { - ipfsGatewayURL: 'https://ipfs.io' + ipfsNodeURL: IPFS_URL } ); const w3cCredential = await adapter.convertOnChainInfoToW3CCredential(