Skip to content

Commit e8fbedd

Browse files
authored
Merge pull request #153 from ChainSafe/fix/update-fix-NU6
Fix/update fix nu6
2 parents 5f80f53 + a4260d5 commit e8fbedd

75 files changed

Lines changed: 6080 additions & 1121 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/check-snap-allowed-origins.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Verify allowedOrigins in snap.manifest.json
21+
- name: Verify allowedOrigins in snap manifest
2222
shell: bash
2323
run: |
2424
set -euo pipefail
25-
FILE="packages/snap/snap.manifest.json"
26-
27-
if [ ! -f "$FILE" ]; then
28-
echo "::error title=Missing file::$FILE not found"
29-
exit 1
30-
fi
3125
3226
if ! command -v jq >/dev/null 2>&1; then
3327
echo "Installing jq..."
@@ -36,18 +30,19 @@ jobs:
3630
fi
3731
3832
expected='["https://webzjs.chainsafe.dev"]'
39-
actual=$(jq -c '.initialPermissions["endowment:rpc"].allowedOrigins' "$FILE")
33+
MANIFEST="packages/snap/snap.manifest.json"
34+
35+
if [ ! -f "$MANIFEST" ]; then
36+
echo "::error title=Missing file::$MANIFEST not found"
37+
exit 1
38+
fi
4039
41-
echo "allowedOrigins in manifest: $actual"
40+
actual=$(jq -c '.initialPermissions["endowment:rpc"].allowedOrigins' "$MANIFEST")
41+
echo "allowedOrigins in $MANIFEST: $actual"
4242
4343
if [ "$actual" != "$expected" ]; then
4444
echo "::error title=Invalid allowedOrigins::For merges to main, allowedOrigins must be $expected. Found: $actual"
45-
if echo "$actual" | grep -qi "localhost"; then
46-
echo "::error title=localhost detected::Remove any localhost origins from allowedOrigins."
47-
fi
4845
exit 1
4946
fi
5047
5148
echo "allowedOrigins are valid."
52-
53-

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ packages/web-wallet/dist/*
2626
!packages/web-wallet/dist/_headers
2727
!packages/web-wallet/dist/_redirects
2828

29+
# Local env overrides (dev proxy, etc.)
30+
.env*.local

0 commit comments

Comments
 (0)