Skip to content

Commit 6e93911

Browse files
committed
fix: type issue with DEFAULT_CHAIN
1 parent 8fa42d2 commit 6e93911

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

scripts/cancel-all-netlify-builds.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function cancelSiteDeploy() #sideId
88
do
99
local name=$(jq -r .name <<< $build)
1010
local branch=$(jq -r .branch <<< $build)
11-
if [[ "$branch" == "dev" || "$branch" == "master" ]]; then
11+
if [[ "$branch" == "dev" || "$branch" == "master" || "$branch" == "feat/lang-direction" || "$branch" == "feat/devtools-neo" ]]; then
1212
continue;
1313
fi
1414
echo "Cancelling build for $name $branch"
@@ -18,7 +18,13 @@ function cancelSiteDeploy() #sideId
1818

1919
# netlify api listSites | jq '. | map([.name, .id])'
2020
v2Site="86d94ae8-f655-46a4-a859-d68696173f3a"
21+
v2Uni="085e1305-e434-4d36-91a4-88e8cbc3aa46"
22+
v2DevtoolsTestnet="7b25b1a8-5fd4-41f7-8fd0-7fe4202229fb"
23+
v2Neo="46f40014-ff00-4a9a-a1a2-4fefeeb1606a"
2124
v2ContractsSite="dd8bc215-e054-407f-92ef-d61511720928"
2225

2326
cancelSiteDeploy $v2Site
27+
cancelSiteDeploy $v2DevtoolsTestnet
28+
cancelSiteDeploy $v2Uni
29+
cancelSiteDeploy $v2Neo
2430
cancelSiteDeploy $v2ContractsSite

web-devtools/src/app/(main)/ruler/SelectArbitrable.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,17 @@ const SelectArbitrable: React.FC = () => {
133133
[publicClient, setArbitrable]
134134
);
135135

136+
const [[chainId, address]] = Object.entries(klerosCoreAddress);
137+
if (chainId !== DEFAULT_CHAIN.toString()) {
138+
throw new Error(`Kleros Core is not deployed on chain ${chainId}`);
139+
}
140+
136141
return (
137142
<Container>
138143
<AddressContainer>
139144
<StyledLabel>Ruler Address:</StyledLabel>
140-
<Copiable copiableContent={klerosCoreAddress[DEFAULT_CHAIN]} info="Ruler Address">
141-
<StyledLabel>{shortenAddress(klerosCoreAddress[DEFAULT_CHAIN])}</StyledLabel>
145+
<Copiable copiableContent={address} info="Ruler Address">
146+
<StyledLabel>{shortenAddress(address)}</StyledLabel>
142147
</Copiable>
143148
</AddressContainer>
144149
<Arbitrables suppressHydrationWarning={true}>

0 commit comments

Comments
 (0)