Skip to content

Commit 01dca90

Browse files
committed
fix: rabbit review
1 parent f999611 commit 01dca90

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

contracts/scripts/keeperBotShutter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ const getContracts = async () => {
3939
*/
4040
const decode = (message: string) => {
4141
const SEPARATOR = "-";
42-
const [choice, salt, justification] = message.split(SEPARATOR);
42+
const parts = message.split(SEPARATOR);
43+
if (parts.length !== 3) {
44+
throw Error(`Malformed decrypted message (${message})`);
45+
}
46+
const [choice, salt, justification] = parts;
4347
return {
4448
choice: BigInt(choice),
4549
salt,

subgraph/core-neo/subgraph.template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ dataSources:
136136
abis:
137137
- name: DisputeKitShutter
138138
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitShutter.json
139+
- name: DisputeKitClassic # Required on Alchemy
140+
file: ../../contracts/deployments/_PLACEHOLDER_/DisputeKitClassicNeo.json
139141
- name: KlerosCore
140142
# FIX: temporarily point to abi with event addition
141143
file: ./abi-migrations/KlerosCore.json

0 commit comments

Comments
 (0)