]> git.ardis.lu - 4-byte-gen/commitdiff
Use precise terminology
authorArdis Lu <ardisglu@gmail.com>
Sat, 6 Apr 2024 22:19:23 +0000 (15:19 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 6 Apr 2024 22:19:23 +0000 (15:19 -0700)
"Signature" can be confused for a cryptographic signature.

README.md
index.html

index 6f42aa4700184f92ff31bf303a691eaefcdcf867..d541e25b8a8f01d52ff8d3238e332f871cd777eb 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # 4-byte-gen
 
-Simple web app to generate optimized function signatures for Solidity.
+Simple web app to generate optimized function selectors for Solidity.
 
 Similar projects:
 - [jeffreyscholz/solidity-zero-finder-rust](https://github.com/jeffreyscholz/solidity-zero-finder-rust)
@@ -13,5 +13,5 @@ Similar projects:
 
 1. Input the standard [ERC-20](https://ercs.ethereum.org/ERCS/erc-20) functions `transfer`, `transferFrom`, and `approve`. You can copy the function definition directly from your Solidity code without modification.
 2. Adjust "Minimum number of zero bytes" to the desired number of zero bytes to mine for. Check out [`4-byte-gas-test`](https://4-byte-gas.ardis.lu/) for a comparison of gas costs between functions with zero bytes.
-3. Click "Parse functions" and the tool will normalize the function signatures (i.e., remove spaces, input names, and extraneous keywords).
+3. Click "Parse functions" and the tool will normalize the function definitions (i.e., remove spaces, input names, and extraneous keywords).
 4. Click "Start all" and the tool will start mining for optimized function names (each function is mined using its own [web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API), so they are mined in parallel).
index 92d9d9dcc31ccf9871c9740be2f3e134bd62ccab..319832d4d2ccc5d440aa4e80c1bddc7251be32f0 100644 (file)
@@ -4,9 +4,9 @@
 <head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <meta name="description" content="Simple web app to generate optimized function signatures for Solidity.">
+  <meta name="description" content="Simple web app to generate optimized function selectors for Solidity.">
   <meta property="og:title" content="4-byte-gen">
-  <meta property="og:description" content="Simple web app to generate optimized function signatures for Solidity.">
+  <meta property="og:description" content="Simple web app to generate optimized function selectors for Solidity.">
   <meta property="og:type" content="website">
   <meta property="og:url" content="https://4bg.ardis.lu/">
   <link rel="icon" href="data:,">
         functionRegex = /^(function )(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) *\((?<parameters>.*?)(?!.+\))/;
       }
       else {
-        fn = fn.replaceAll(/[;'"]/g, ''); // Clean all characters that definitely do not affect the signature
+        fn = fn.replaceAll(/[;'"]/g, ''); // Clean all characters that definitely do not affect the selector
         functionRegex = /^(function )?(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) *\((?<parameters>.*?)(?!.+\))/;
       }
 
This page took 0.039761 seconds and 4 git commands to generate.