Bump LASER version

pull/88/head
Bernhard Mueller 7 years ago
parent c5c2b76633
commit 85d75846e5
  1. 2
      requirements.txt
  2. 4
      setup.py
  3. 3
      solidity_examples/reentrancy.sol

@ -2,7 +2,7 @@ ethereum>=2.0.4
ZODB>=5.3.0 ZODB>=5.3.0
z3-solver>=4.5 z3-solver>=4.5
web3 web3
laser-ethereum==0.5.9 laser-ethereum==0.5.10
requests requests
BTrees BTrees
py-solc py-solc

@ -254,7 +254,7 @@ Credit
setup( setup(
name='mythril', name='mythril',
version='0.13.19', version='0.13.20',
description='Security analysis tool for Ethereum smart contracts', description='Security analysis tool for Ethereum smart contracts',
long_description=long_description, long_description=long_description,
@ -291,7 +291,7 @@ setup(
'web3', 'web3',
'ZODB>=5.3.0', 'ZODB>=5.3.0',
'z3-solver>=4.5', 'z3-solver>=4.5',
'laser-ethereum==0.5.9', 'laser-ethereum==0.5.10',
'requests', 'requests',
'BTrees', 'BTrees',
'py-solc' 'py-solc'

@ -12,10 +12,11 @@ contract Reentrancy {
function withdraw(uint _amount) public { function withdraw(uint _amount) public {
if(balances[msg.sender] >= _amount) { if(balances[msg.sender] >= _amount) {
msg.sender.call.value(_amount)(); if (msg.sender.call.value(_amount)()) {
balances[msg.sender] -= _amount; balances[msg.sender] -= _amount;
} }
} }
}
function() payable {} function() payable {}
} }
Loading…
Cancel
Save