mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
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.
20 lines
507 B
20 lines
507 B
5 years ago
|
pragma solidity ^0.5.0;
|
||
6 years ago
|
|
||
|
|
||
1 year ago
|
contract Kcalls {
|
||
7 years ago
|
uint public n;
|
||
|
address public sender;
|
||
|
|
||
6 years ago
|
function callSetN(address _e, uint _n) public {
|
||
|
_e.call(abi.encode(bytes4(keccak256("setN(uint256)")), _n));
|
||
7 years ago
|
}
|
||
|
|
||
6 years ago
|
function callcodeSetN(address _e, uint _n) public view {
|
||
6 years ago
|
_e.staticcall(abi.encode(bytes4(keccak256("setN(uint256)")), _n));
|
||
7 years ago
|
}
|
||
|
|
||
6 years ago
|
function delegatecallSetN(address _e, uint _n) public {
|
||
|
_e.delegatecall(abi.encode(bytes4(keccak256("setN(uint256)")), _n));
|
||
7 years ago
|
}
|
||
|
}
|