From dc1db0451c443cb102c2eb5c2b9fe76940a8c5f6 Mon Sep 17 00:00:00 2001 From: alcueca Date: Wed, 4 Oct 2023 15:23:54 +0100 Subject: [PATCH] stop if the basic selector doesn't match --- src/tutorial/the-basics/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tutorial/the-basics/README.md b/src/tutorial/the-basics/README.md index 557998a..fe32a10 100644 --- a/src/tutorial/the-basics/README.md +++ b/src/tutorial/the-basics/README.md @@ -140,6 +140,9 @@ To accept external calls for multiple functions we will have to extract our `add // Jump to the implementation of the ADD_TWO function if the calldata matches the function selector __FUNC_SIG(addTwo) eq addTwo jumpi + + // Stop execution if the calldata doesn't match the function selector + stop addTwo: ADD_TWO()