Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slither/tests/ast-parsing/free_functions/library_constant_function_c...

15 lines
284 B

library ExtendedMath {
uint256 constant decimals = 18;
}
interface IERC20 {
function decimals() external view returns (uint8);
}
contract A {
using ExtendedMath for *;
function test(address x) public {
uint8 decimals = IERC20(address(x)).decimals();
}
}