Skip to content

Commit a65856a

Browse files
feat: wait for C1 and errors (#26)
1 parent aaadee1 commit a65856a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ const main = async () => {
218218
inputs,
219219
});
220220
const ack = await mru.submitAction(reducerName, signedAction);
221-
// const { errors } = await ack.waitFor(ActionConfirmationStatus.C1);
222-
// if (errors?.length) {
223-
// throw new Error(errors[0].message);
224-
// }
221+
const { errors } = await ack.waitFor(ActionConfirmationStatus.C1);
222+
if (errors?.length) {
223+
throw new Error(errors[0].message);
224+
}
225225
res.status(201).send({ ack });
226226
} catch (e: any) {
227227
res.status(400).send({ error: e.message });

0 commit comments

Comments
 (0)