Skip to content

Commit

Permalink
added some TODO items
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoury committed Aug 29, 2024
1 parent 1e02999 commit 6ff7e93
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions orchestrator/src/indexer/rooch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default class RoochIndexer {
try {
let request: AxiosResponse<any, any>;
if (isValidJson(data.params.value.headers)) {
// TODO: Replace direct requests via axios with requests via VerityClient TS module
request = await axios({
method: data.params.value.method,
data: data.params.value.body,
Expand Down Expand Up @@ -192,11 +193,9 @@ export default class RoochIndexer {
const data = await this.processRequestAddedEvent(event.decoded_event_data.value);
if (data) {
try {
const temp = await this.sendFulfillment(
event.decoded_event_data.value,
data.status,
JSON.stringify(data.message),
);
await this.sendFulfillment(event.decoded_event_data.value, data.status, JSON.stringify(data.message));
// TODO: Use the notify parameter to send transaction to the contract and function to marked in the request event

await prismaClient.events.create({
data: {
eventHandleId: event.event_id.event_handle_id,
Expand Down

0 comments on commit 6ff7e93

Please sign in to comment.