doc: use shr instead div

This commit is contained in:
Akshit Choudhary
2023-08-24 20:48:28 +05:30
committed by GitHub
parent 37e18612c5
commit 12937666b8
+1 -1
View File
@@ -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 {