Closed xhliu closed 2 years ago
return in the middle of a function.
return
function retrieve() external view returns (uint256){ uint256 x = number * 10; if (number > 10) return x; return x + 10; }
Originally posted by @freedomhero in https://github.com/sCrypt-Inc/sol2scrypt/issues/3#issuecomment-1002450912
depends on
if (x > 0) { return x; x--; x += 9; }
return
in the middle of a function.Originally posted by @freedomhero in https://github.com/sCrypt-Inc/sol2scrypt/issues/3#issuecomment-1002450912