You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
pragma solidity ^0.4.18;
contract ExampleImplementer {
function canImplementInterfaceForAddress(address addr, bytes32 interfaceHash) view public returns(bool) {
return true;
}
}
If I unlock the fallback function and provide some default behavior, then it would break those checks because of strange behavior by design in solidity if a method does not exist it will instead execute the fallback function, and if the fallback function does not raise an exception it will return 1 causing the check to pass.
The only solution that comes to my mind is to use some magic numbers. Maybe we should return uint which should be more than 0.
The text was updated successfully, but these errors were encountered:
https://github.com/jbaylina/eip820/blob/master/contracts/ExampleImplementer.sol#L5
If I unlock the fallback function and provide some default behavior, then it would break those checks because of strange behavior by design in solidity if a method does not exist it will instead execute the fallback function, and if the fallback function does not raise an exception it will return 1 causing the check to pass.
The only solution that comes to my mind is to use some magic numbers. Maybe we should return uint which should be more than 0.
The text was updated successfully, but these errors were encountered: