Skip to content

Commit

Permalink
fix: read execution_strategy from event directly (#556)
Browse files Browse the repository at this point in the history
* fix: read execution_strategy from event directly

It's stored directly in the event, not under proposal.

* chore: bring back .reset()
  • Loading branch information
Sekhmet authored Aug 7, 2024
1 parent fe52a4c commit afaa0bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function run() {
await sleep(PRODUCTION_INDEXER_DELAY);
}

// await checkpoint.reset();
await checkpoint.reset();
checkpoint.start();
}

Expand Down
4 changes: 1 addition & 3 deletions apps/api/src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,16 +565,14 @@ export const handleUpdate: starknet.Writer = async ({
console.log('failed to update proposal metadata', e);
}

/*
const executionStrategy = await handleExecutionStrategy(
event.proposal.execution_strategy,
event.execution_strategy,
event.payload
);
if (executionStrategy) {
proposal.execution_strategy_type = executionStrategy.executionStrategyType;
proposal.quorum = executionStrategy.quorum;
}
*/

await proposal.save();
};
Expand Down

0 comments on commit afaa0bf

Please sign in to comment.