Commit 306d874
fix(evm-wallet-experiment): use URL.hostname in integration test allo… (#946)
…wedHosts
URL.host includes the port ('127.0.0.1:PORT') but makeHostCaveat checks
URL.hostname which strips the port. Same regression as the docker e2e
fix in #945
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: a test-only change that corrects hostname/port handling to
prevent false allowlist failures.
>
> **Overview**
> Updates the OpenClaw wallet plugin integration test to derive
`allowedHosts` from `URL.hostname` instead of `URL.host`, avoiding
inclusion of the ephemeral RPC server port so host allowlisting matches
the production hostname check.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1d133fd. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d93dc41 commit 306d874
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
0 commit comments