We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaadee1 commit a65856aCopy full SHA for a65856a
src/index.ts
@@ -218,10 +218,10 @@ const main = async () => {
218
inputs,
219
});
220
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
- // }
+ const { errors } = await ack.waitFor(ActionConfirmationStatus.C1);
+ if (errors?.length) {
+ throw new Error(errors[0].message);
+ }
225
res.status(201).send({ ack });
226
} catch (e: any) {
227
res.status(400).send({ error: e.message });
0 commit comments