Skip to content

Commit d5f1edf

Browse files
sirtimidclaude
andcommitted
fix(evm-wallet-experiment): endow crypto on delegation vat in setup scripts
`setup-home.sh` and `setup-away.sh` listed only `TextEncoder`/`TextDecoder` in the delegation vat's globals, but `delegator-vat.ts` evaluates `makeSaltGenerator()` at module load, which now unconditionally calls `crypto.getRandomValues`. Matches the canonical config in `cluster-config.ts`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f387464 commit d5f1edf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/evm-wallet-experiment/scripts/setup-away.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ CONFIG=$(BUNDLE_DIR="$BUNDLE_DIR" DM="$DELEGATION_MANAGER" RPC_HOST="$AWAY_RPC_H
382382
},
383383
delegation: {
384384
bundleSpec: bd + '/delegation-vat.bundle',
385-
globals: ['TextEncoder', 'TextDecoder'],
385+
globals: ['TextEncoder', 'TextDecoder', 'crypto'],
386386
parameters: { delegationManagerAddress: dm }
387387
}
388388
}

packages/evm-wallet-experiment/scripts/setup-home.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ CONFIG=$(BUNDLE_DIR="$BUNDLE_DIR" DM="$DELEGATION_MANAGER" RPC_HOST="$RPC_HOST"
347347
},
348348
delegation: {
349349
bundleSpec: bd + '/delegation-vat.bundle',
350-
globals: ['TextEncoder', 'TextDecoder'],
350+
globals: ['TextEncoder', 'TextDecoder', 'crypto'],
351351
parameters: { delegationManagerAddress: dm }
352352
}
353353
}

0 commit comments

Comments
 (0)