Commit 7e1104f
fix(check-order-status): fall back to 12s block time for unsupported chains
getAverageBlockTimeSecs throws for chains not yet registered in sdk-core
(e.g. Sepolia / chainId 11155111). This causes the check-order-status step
function to crash on every retry for any order posted on those chains,
surfacing as repeated TaskFailed errors:
Error: getAverageBlockTimeSecs: unsupported chainId 11155111;
register it in chains.ts before use
Wrap the call in a try/catch and fall back to 12 s (Ethereum PoS slot
time) so status tracking degrades gracefully instead of looping forever.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f19a3c3 commit 7e1104f
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
252 | 261 | | |
253 | 262 | | |
254 | 263 | | |
| |||
0 commit comments