forked from ethereum-optimism/supersim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated dockerfile and entrypoint to deploy l1 contracts if not found
- Loading branch information
1 parent
92e3500
commit 9c336c8
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" = "deploy-l1" ]; then | ||
/app/deploy-l1.sh $L1_NODE_URL | ||
else | ||
exec supersim "$@" | ||
fi | ||
L1StandardBridgeProxy=0x5C7c905B505f0Cf40Ab6600d05e677F717916F6B | ||
|
||
# Check if L1 contracts are deployed | ||
CODE_SIZE=$(cast code $L1StandardBridgeProxy) | ||
|
||
if [ "${#CODE_SIZE}" -eq 0 ] || [ "$CODE_SIZE" = "0x" ]; then | ||
echo "Deploying L1 contracts..." | ||
/app/deploy-l1.sh "$L1_NODE_URL" | ||
fi | ||
|
||
exec supersim "$@" |
Submodule optimism
updated
3660 files