mirror of https://github.com/crytic/slither
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.
15 lines
284 B
15 lines
284 B
2 years ago
|
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();
|
||
|
}
|
||
|
}
|