Skip to content

fix(evm-wallet-experiment): use URL.hostname in integration test allo…#946

Merged
grypez merged 1 commit intomainfrom
grypez/evm-wallet-ses-cleanup
Apr 27, 2026
Merged

fix(evm-wallet-experiment): use URL.hostname in integration test allo…#946
grypez merged 1 commit intomainfrom
grypez/evm-wallet-ses-cleanup

Conversation

@grypez
Copy link
Copy Markdown
Contributor

@grypez grypez commented Apr 27, 2026

…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


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.

Reviewed by Cursor Bugbot for commit 1d133fd. Bugbot is set up for automated code reviews on this repo. Configure here.

…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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@grypez grypez marked this pull request as ready for review April 27, 2026 13:47
@grypez grypez requested a review from a team as a code owner April 27, 2026 13:47
@grypez grypez enabled auto-merge April 27, 2026 13:48
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 70.95%
🟰 ±0%
8118 / 11441
🔵 Statements 70.79%
🟰 ±0%
8253 / 11658
🔵 Functions 71.9%
🟰 ±0%
1971 / 2741
🔵 Branches 64.58%
🟰 ±0%
3286 / 5088
File CoverageNo changed files found.
Generated in workflow #4383 for commit 1d133fd by the Vitest Coverage Report Action

@grypez grypez added this pull request to the merge queue Apr 27, 2026
Merged via the queue into main with commit 306d874 Apr 27, 2026
33 checks passed
@grypez grypez deleted the grypez/evm-wallet-ses-cleanup branch April 27, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants