Closed VGabriel45 closed 1 month ago
Path | Size |
---|---|
core (esm) | 55.8 KB (-0.02% 🔽) |
core (cjs) | 60.99 KB (-0.07% 🔽) |
account (tree-shaking) | 53.44 KB (+0.07% 🔺) |
bundler (tree-shaking) | 2.56 KB (+1.87% 🔺) |
paymaster (tree-shaking) | 2.21 KB (0%) |
modules (tree-shaking) | 40.98 KB (0%) |
Improved regex check for chain id in bundler and paymaster url to fit other url structure's as well.
PR-Codex overview
This PR focuses on enhancing the
extractChainIdFromUrl
function inUtils.ts
by improving error handling and adding documentation. It also introduces unit tests for various URL structures to ensure correct chain ID extraction.Detailed summary
extractChainIdFromUrl
, detailing parameters, return values, and error handling.extractChainIdFromBundlerUrl
andextractChainIdFromPaymasterUrl
functions, both utilizingextractChainIdFromUrl
.read.test.ts
to validate chain ID extraction from multiple URL formats.