← Code LabJavaScript0/50 solved · 0%
Web3 · hard

45. Function selector

How calldata starts.

Write `selectorInput(name, types)` returning the canonical signature string, e.g. `transfer(address,uint256)`, which is what gets keccak-hashed to build a selector.
Required in your answer: .join(