Skip to content

Commit

Permalink
returned false if result.length==0
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Jul 29, 2019
1 parent 0a8a49d commit f9066ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/introspection/ERC165Checker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ library ERC165Checker {
{
bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);
(bool success, bytes memory result) = account.staticcall.gas(30000)(encodedParams);
if (result.length == 0) return (false, false);
return (success, abi.decode(result, (bool)));
}
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f9066ad

Please sign in to comment.