Skip to content

Commit 8a2f74e

Browse files
committed
chore(evm-wallet-experiment): name Anvil for local chain 31337
Local stack uses Foundry Anvil (Prague) for AA/delegation E2E, not Hardhat. Update comments and resolve_chain primary name; keep `hardhat` as a silent alias for existing shell callers. Made-with: Cursor
1 parent 2e25495 commit 8a2f74e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/evm-wallet-experiment/scripts/resolve-chain.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ resolve_chain() {
2525
arbitrum|arb) CHAIN_ID=42161 ;;
2626
linea) CHAIN_ID=59144 ;;
2727
sepolia) CHAIN_ID=11155111 ;;
28-
hardhat|localhost) CHAIN_ID=31337 ;;
28+
# Local 31337: Anvil in Docker E2E; `hardhat` alias kept for older scripts.
29+
anvil|localhost|hardhat) CHAIN_ID=31337 ;;
2930
*)
3031
# Try as numeric ID
3132
if echo "$input" | grep -qE '^[0-9]+$'; then
@@ -56,7 +57,7 @@ chain_name() {
5657
42161) echo "Arbitrum One" ;;
5758
59144) echo "Linea" ;;
5859
11155111) echo "Sepolia" ;;
59-
31337) echo "Hardhat" ;;
60+
31337) echo "Anvil" ;;
6061
*) echo "unknown" ;;
6162
esac
6263
}
@@ -126,5 +127,5 @@ print_supported_chains() {
126127
echo " arbitrum 42161 arb" >&2
127128
echo " linea 59144" >&2
128129
echo " sepolia 11155111" >&2
129-
echo " hardhat 31337 localhost" >&2
130+
echo " anvil 31337 localhost" >&2
130131
}

packages/evm-wallet-experiment/src/lib/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function setSdkLogger(fn: SdkLogFn): void {
8888

8989
/**
9090
* Register a custom environment for a chain ID that the SDK doesn't natively
91-
* support (e.g. local Hardhat at chain 31337). Overrides take precedence over
91+
* support (e.g. local Anvil at chain 31337). Overrides take precedence over
9292
* the SDK's built-in registry.
9393
*
9494
* @param chainId - The chain ID.

packages/evm-wallet-experiment/src/vats/coordinator-vat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ export function buildRootObject(
15631563
}
15641564

15651565
// Register a custom SDK environment for chains not in the SDK's built-in
1566-
// registry (e.g. local Hardhat at chain 31337).
1566+
// registry (e.g. local Anvil at chain 31337).
15671567
if (config.environment) {
15681568
registerEnvironment(config.chainId, config.environment);
15691569
}

0 commit comments

Comments
 (0)