Update README.md

This commit is contained in:
dr. mia von steinkirch, phd 2023-02-17 19:44:49 -08:00 committed by GitHub
parent 37e7145383
commit 29a243e0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
* calldata is the encoded parameter(s) sent on functions by smart contracts to the evm (for example, through `abi.econde()`,`abi.econcdeWithSelector() for a particular interfaced function, or `abi.encodePacked()` for efficient dynamic variables).
* `selector()` generates the 4-bytes representing the method in the interface: this is how the evm knows which function is being interacted.
* **function signature**: `selector()` generates the 4-bytes representing the method in the interface: this is how the evm knows which function is being interacted. function signatures are defined as the first four bytes of the Keccak hash of the canonical representation of the function signature.
* each piece of calldata is 32 bytes long (64 chars), where 20 hex == 32-bytes