Skip to content

Commit

Permalink
removing verification on tokenlist object initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
pellicceama committed Oct 20, 2022
1 parent caf4a01 commit 636c9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokenlist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function needBeRegenerateTokenlist(directory: string): Promise<void
return fs.writeFileSync(path.join(directory, FILE_NAME), JSON.stringify(tokenlist, undefined, 2));
}

async function ingestNewAssets(newAssets: ExtTokenInfo[], directory: string, source?: string, verificationType?: VerificationType): Promise<void> {
async function ingestNewAssets(newAssets: ExtTokenInfo[], directory: string, source?: string): Promise<void> {
// take a list of tokens and add them to the repo if they don't already exist

await Promise.all(newAssets.map<Promise<void>>(token => {
Expand All @@ -89,7 +89,7 @@ async function ingestNewAssets(newAssets: ExtTokenInfo[], directory: string, sou
fs.mkdirSync(tokenDir, { recursive: true });
}

const parsedToken = await Asset.fromTokenlistTokenInfo(token, source, verificationType);
const parsedToken = await Asset.fromTokenlistTokenInfo(token, source);
await parsedToken.logo.downloadAndPersistLogos(tokenDir);

// console.log('IngestNewToken saving token ' + JSON.stringify(parsedToken));
Expand Down

0 comments on commit 636c9a8

Please sign in to comment.