diff --git a/content/tutorials/how-to-send-l2-l1-message/10.index.md b/content/tutorials/how-to-send-l2-l1-message/10.index.md index c1fcd121..65e8d947 100644 --- a/content/tutorials/how-to-send-l2-l1-message/10.index.md +++ b/content/tutorials/how-to-send-l2-l1-message/10.index.md @@ -334,7 +334,13 @@ Create a `4.prove-inclusion.ts` file in the root directory with the next script: // The full proof object, including root, proof and id const PROOF = {}; - proveL2MessageInclusion(L1_BATCH_NUMBER, PROOF, L1_BATCH_TX_INDEX, SENDER, MESSAGE); + proveL2MessageInclusion(L1_BATCH_NUMBER, PROOF, L1_BATCH_TX_INDEX, SENDER, MESSAGE).then(result => { + if (result == true) { + console.log("\x1b[32mThe proof is valid\x1b[0m"); + } else { + console.log("\x1b[31mThe proof is not valid\x1b[0m"); + } + }); } catch (error) { console.error(error); }