Skip to content

Commit

Permalink
refactor: Update syncState remote Url
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Mar 6, 2024
1 parent 4a0da7b commit b822ffd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/warpHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ async function getWarpContract(signer?: any) {
if (!cacheDirectoryExists) {
fs.mkdirSync(cacheDirectory, { recursive: true });
await contract
.syncState('https://dre-1.warp.cc/contract', { validity: true })
.syncState('https://pl-cache.saikranthi.dev/contract', {
validity: true,
})
.catch(() => {});
}

Expand All @@ -54,7 +56,7 @@ const getWarp = (destPath?: string, logLevel?: LogLevel) => {
};

export async function getRepo(id: string, destpath?: string) {
let pl = getWarp(destpath).contract(getWarpContractTxId());
let pl = await getWarpContract();
if (isValidUuid(id)) {
// let warp throw error if it can't retrieve the repository
const response = await pl.viewState({
Expand Down

0 comments on commit b822ffd

Please sign in to comment.