Repository navigation
Commit 13d2ff7
committed
docs: correct run instructions and sell amount log in the swap example
The header said the API key could go in a .env file, but nothing in the
repo loads one — no dotenv dependency, and the script reads process.env
directly. Running it as documented failed with "ZERO_EX_API_KEY is not
set" despite a populated .env. Document --env-file instead.
Also print the decimal-adjusted sell amount rather than raw base units,
so the opening line matches the "Sell: 100 USDC" line below it, and
scope the funded-wallet prerequisite to execution — the script as
written is quote-only.1 parent 79a0489 commit 13d2ff7
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
0 commit comments