aboutsummaryrefslogtreecommitdiffstats
path: root/docs/security-considerations.rst
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-02 22:25:54 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-02 22:25:54 +0800
commite16e37f5074ce359b852f3b2e4b80095d22952dc (patch)
treea076864dbe06cfbe47121b2e8a0a3c335b28a338 /docs/security-considerations.rst
parentda60fdab37ddd6126e5ba605e7041dc6f26ab5ee (diff)
downloaddexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.gz
dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.tar.zst
dexon-solidity-e16e37f5074ce359b852f3b2e4b80095d22952dc.zip
Updates docs to new constructor syntax.
Diffstat (limited to 'docs/security-considerations.rst')
-rw-r--r--docs/security-considerations.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/security-considerations.rst b/docs/security-considerations.rst
index ec67773d..d7726f43 100644
--- a/docs/security-considerations.rst
+++ b/docs/security-considerations.rst
@@ -180,13 +180,13 @@ Never use tx.origin for authorization. Let's say you have a wallet contract like
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.24;
// THIS CONTRACT CONTAINS A BUG - DO NOT USE
contract TxUserWallet {
address owner;
- function TxUserWallet() public {
+ constructor() public {
owner = msg.sender;
}
@@ -200,7 +200,7 @@ Now someone tricks you into sending ether to the address of this attack wallet:
::
- pragma solidity ^0.4.11;
+ pragma solidity ^0.4.24;
interface TxUserWallet {
function transferTo(address dest, uint amount) public;
@@ -209,7 +209,7 @@ Now someone tricks you into sending ether to the address of this attack wallet:
contract TxAttackWallet {
address owner;
- function TxAttackWallet() public {
+ constructor() public {
owner = msg.sender;
}