mirror of https://github.com/ConsenSys/mythril
Fixes issue with ext calls (#1733)
* Fix false positives on constructor * Fix issues with extcalls * Remove a log * Fix an ordering issue * Fix a bug with balance_pull/1738/head
parent
e12460bf6e
commit
030d640bbb
@ -0,0 +1,15 @@ |
||||
pragma solidity ^0.6.0; |
||||
|
||||
interface IERC20 { |
||||
function transfer(address to, uint256 amount) external returns (bool); |
||||
} |
||||
|
||||
contract A { |
||||
constructor() public { |
||||
/// nothing detected |
||||
address(0).call(""); |
||||
IERC20(address(0)).transfer(address(0), 0); |
||||
assert(false); |
||||
} |
||||
} |
||||
|
@ -0,0 +1 @@ |
||||
608060405234801561001057600080fd5b50600073ffffffffffffffffffffffffffffffffffffffff166040518060000190506000604051808303816000865af19150503d806000811461006f576040519150601f19603f3d011682016040523d82523d6000602084013e610074565b606091505b505050600073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000806040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561010057600080fd5b505af1158015610114573d6000803e3d6000fd5b505050506040513d602081101561012a57600080fd5b810190808051906020019092919050505050600061014457fe5b603f806101526000396000f3fe6080604052600080fdfea26469706673582212205bba7185aa846906fd4f2cc890c4095f521be787e49f5366712f751111e8d91764736f6c63430006000033 |
Loading…
Reference in new issue