Commit e8ce475
committed
fix: prioritize EVM chains when resolving chainId collisions
ChainId can have collisions across chain families (e.g., both Ethereum
and Aptos have chainId=1). Updated resolveToInternalId to collect all
matches and prioritize EVM chains, since by-chain-id endpoints are
typically used for EVM chain IDs.
This fixes the issue where /lanes/by-chain-id/1/43114 was incorrectly
resolving to Aptos instead of Ethereum.1 parent 739c343 commit e8ce475
1 file changed
+26
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
600 | | - | |
| 602 | + | |
| 603 | + | |
601 | 604 | | |
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
605 | | - | |
606 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
607 | 627 | | |
608 | 628 | | |
609 | 629 | | |
| |||
0 commit comments