Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/evm-wallet-experiment/docker/Dockerfile.evm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ FROM ghcr.io/foundry-rs/foundry:latest AS foundry

FROM node:22-slim

# `cast` (Foundry nightly 2026-04-22+) requires a CA bundle on disk even for
# plain-http localhost RPC calls, so `node:22-slim` — which ships without
# ca-certificates — makes the entrypoint's `cast bn` wait loop hang. Install
# it once at build time.
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy anvil + cast from the foundry image
Expand Down
18 changes: 16 additions & 2 deletions packages/evm-wallet-experiment/src/vats/away-coordinator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,14 @@ export function buildRootObject(
errors.push(error);
}
}
throw new Error('All delegation twins failed', { cause: errors });
throw new Error(
`All delegation twins failed: ${errors
.map((cause) =>
cause instanceof Error ? cause.message : String(cause),
)
.join('; ')}`,
{ cause: errors },
);
}
if (homeSection) {
return E(homeSection).transferNative(to, amt);
Expand Down Expand Up @@ -1852,7 +1859,14 @@ export function buildRootObject(
errors.push(error);
}
}
throw new Error('All delegation twins failed', { cause: errors });
throw new Error(
`All delegation twins failed: ${errors
.map((cause) =>
cause instanceof Error ? cause.message : String(cause),
)
.join('; ')}`,
{ cause: errors },
);
}
if (homeSection) {
return E(homeSection).transferFungible(token, to, amt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const TEST_MNEMONIC =
const CHAIN_ID = 31337;
const EVM_RPC_URL = 'http://evm:8545';
const BUNDLER_URL = 'http://bundler:4337';
const ALLOWED_HOSTS = ['evm:8545', 'bundler:4337'];
// Hostnames only — the kernel's network caveat (packages/ocap-kernel
// /src/vats/network-caveat.ts) matches `URL.hostname`, which never
// includes a port.
const ALLOWED_HOSTS = ['evm', 'bundler'];

export type HomeResult = {
kref: string;
Expand Down
Loading