makerdao / multicall.js

Multicall.js: A JavaScript blockchain state management library for dapps
MIT License
421 stars 97 forks source link

Ignore spaces in contract method description #45

Open davidberiro opened 3 years ago

davidberiro commented 3 years ago

Right now passing allowance(address, address) as the method name for an ERC20 token will never return any results, since the function selector (first 4 bytes of keccak hash) is different than allowance(address,address) due to the space. It would help if the library would remove any spaces it found inside the function description.