Skip to content

Commit 8ebdc9a

Browse files
committed
fix: revert change that might have broken Update permit info job
1 parent 5344d34 commit 8ebdc9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Instructions for setting up and running the various scripts locally
5454

5555
### Prerequisites
5656

57-
Currently runs on Node.js v18 (as this scripts use `fetch`, which was introduced in Node.js 18)
57+
Currently runs on Node.js LTS/Gallium v16.20.2
5858

5959
```bash
6060
# Install dependencies
@@ -135,4 +135,4 @@ To support a new network (e.g. Ink, chain ID 57073), run these steps in order:
135135

136136
Without the second argument, the script would use `CowSwap.json` and skip all tokens (they would have the wrong chainId), leaving the permit file empty.
137137

138-
3. **Include only the new network's files in your PR.** The scripts above may have updated files for other networks too; do not include those changes, as they are updated daily by a cron job.
138+
3. **Include only the new network's files in your PR.** The scripts above may have updated files for other networks too; do not include those changes, as they are updated daily by a cron job.

src/permitInfo/utils/getTokensFromTokenList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function getTokensFromTokenList(
1616
if (tokenListPath?.startsWith('http')) {
1717
return (await fetch(tokenListPath).then((r) => r.json())).tokens
1818
} else {
19-
const filePath = tokenListPath ? join(BASE_PATH, tokenListPath) : join(BASE_PATH, tokenListsByNetwork[chainId])
19+
const filePath = tokenListPath ? tokenListPath : join(BASE_PATH, tokenListsByNetwork[chainId])
2020

2121
return JSON.parse(readFileSync(filePath, 'utf-8')).tokens
2222
}

0 commit comments

Comments
 (0)