From 12937666b8ad6aa2e9da2ff55be9bbf72aab1ab3 Mon Sep 17 00:00:00 2001 From: Akshit Choudhary Date: Thu, 24 Aug 2023 20:48:28 +0530 Subject: [PATCH] doc: use shr instead div --- docs/yul.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/yul.rst b/docs/yul.rst index cf47c1e87..21b1cf3c4 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -1343,7 +1343,7 @@ Complete ERC20 Example /* ---------- calldata decoding functions ----------- */ function selector() -> s { - s := div(calldataload(0), 0x100000000000000000000000000000000000000000000000000000000) + s := shr(224, calldataload(0)) } function decodeAsAddress(offset) -> v {