Skip to content

Commit d81bda0

Browse files
grypezclaude
andcommitted
fix(evm-wallet-experiment): use URL.hostname in integration test allowedHosts
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>
1 parent 7ec9cbe commit d81bda0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ exec "${process.execPath}" "${ocapCliEntrypoint}" "$@"
233233
throw new Error('Failed to start test RPC server');
234234
}
235235
rpcUrl = `http://127.0.0.1:${String(address.port)}`;
236-
const allowedRpcHost = new URL(rpcUrl).host;
236+
const allowedRpcHost = new URL(rpcUrl).hostname;
237237

238238
await runOcap(['daemon', 'start']);
239239
const launchResponse = (await runOcapJson([

0 commit comments

Comments
 (0)