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/top-level-0.7.4.sol

8 lines
193 B

uint constant EXPONENT = 10;
uint constant MULTIPLIER = 2**EXPONENT;
struct Fixed { uint value; }
function toFixed(uint x) pure returns (Fixed memory ret) {
ret.value = x * MULTIPLIER;
}