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/detectors/external-function/0.5.16/external_function_3.sol

20 lines
567 B

pragma experimental ABIEncoderV2;
contract Test {
struct testStruct {
uint256 id;
string name;
}
function good(bytes calldata x) external {}
function good2() public {}
function good3(uint256 x, uint256 y) public {}
function good4(uint256[] calldata x, string calldata y) external {}
function good5(testStruct calldata x) external {}
function bad(bytes memory x) public {}
function bad2(uint256[] memory x) public {}
function bad3(testStruct memory x) public {}
function bad4(string memory x) public {}
}