Closed MosheStauber closed 6 years ago
You are correct @notACodeMonkey1. It was unexpectedly introduced after linting & wasn't properly rechecked.
Here's the PR that initially took out the bracket. https://github.com/ConsenSys/Tokens/pull/106
The factory got faster because the linting screwed up the brackets. @maurelian @skmgoldin. :)
Thanks for the catch & keen eye.
Shoot. Thanks for the catch indeed.
`//verifies if a contract that has been deployed is a Human Standard Token. //NOTE: This is a very expensive function, and should only be used in an eth_call. ~800k gas function verifyEIP20(address _tokenContract) public view returns (bool) { bytes memory fetchedTokenByteCode = codeAt(_tokenContract);
Shouldn't the
return true;
statement be outside of the for-loop? The function will return true on the first match, even if the rest dont match.