mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update non-existant pragma 0.4.99 to 0.5.0
Use correct syntax for pragma Change pragma syntax One more change to pragma syntax
This commit is contained in:
@@ -183,7 +183,7 @@ Never use tx.origin for authorization. Let's say you have a wallet contract like
|
||||
|
||||
::
|
||||
|
||||
pragma solidity >0.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
// THIS CONTRACT CONTAINS A BUG - DO NOT USE
|
||||
contract TxUserWallet {
|
||||
@@ -203,7 +203,7 @@ Now someone tricks you into sending ether to the address of this attack wallet:
|
||||
|
||||
::
|
||||
|
||||
pragma solidity >0.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
interface TxUserWallet {
|
||||
function transferTo(address payable dest, uint amount) external;
|
||||
|
||||
Reference in New Issue
Block a user