Skip to content

Commit 3a2202b

Browse files
Mani BrarMani Brar
authored andcommitted
fix: script os dependency
1 parent c3029fa commit 3a2202b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

veascan-subgraph-outbox/scripts/update.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ for i in $(seq 0 $((count - 1))); do
3636
fi
3737

3838
# Patch VeaOutbox.ts: swap Gnosis imports to Eth imports when targeting sepolia
39-
sed -i "" \
39+
sed -i.bak \
4040
-e 's|from "../generated/VeaOutboxArbToGnosisDevnet/VeaOutboxArbToGnosisDevnet";|from "../generated/VeaOutboxArbToEthDevnet/VeaOutboxArbToEthDevnet";|' \
4141
-e 's|from "../generated/VeaOutboxArbToGnosisTestnet/VeaOutboxArbToGnosisTestnet";|from "../generated/VeaOutboxArbToEthTestnet/VeaOutboxArbToEthTestnet";|' \
4242
"$VEAOUTBOX_TS"
43-
43+
rm -f "$VEAOUTBOX_TS.bak"
4444

4545
elif [[ "$hardhatNetwork" == "chiado" ]]; then
4646
if [[ "$origName" == *"ArbToEthDevnet"* ]]; then
@@ -51,10 +51,11 @@ for i in $(seq 0 $((count - 1))); do
5151

5252

5353
# Patch VeaOutbox.ts: swap Eth imports to Gnosis imports when targeting chiado
54-
sed -i "" \
54+
sed -i.bak \
5555
-e 's|from "../generated/VeaOutboxArbToEthDevnet/VeaOutboxArbToEthDevnet";|from "../generated/VeaOutboxArbToGnosisDevnet/VeaOutboxArbToGnosisDevnet";|' \
5656
-e 's|from "../generated/VeaOutboxArbToEthTestnet/VeaOutboxArbToEthTestnet";|from "../generated/VeaOutboxArbToGnosisTestnet/VeaOutboxArbToGnosisTestnet";|' \
5757
"$VEAOUTBOX_TS"
58+
rm -f "$VEAOUTBOX_TS.bak"
5859
fi
5960
artifact="$SCRIPT_DIR/../../contracts/deployments/$hardhatNetwork/${newName}${contractFileSuffix}.json"
6061

0 commit comments

Comments
 (0)