aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.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/abi-spec.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/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index e4f8ed4f..146d50e5 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -437,10 +437,10 @@ For example,
::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.4.24;
contract Test {
- function Test() public { b = 0x12345678901234567890123456789012; }
+ constructor() public { b = 0x12345678901234567890123456789012; }
event Event(uint indexed a, bytes32 b);
event Event2(uint indexed a, bytes32 b);
function foo(uint a) public { emit Event(a, b); }
@@ -582,4 +582,4 @@ Note that constants will be packed using the minimum number of bytes required to
This means that, for example, ``abi.encodePacked(0) == abi.encodePacked(uint8(0)) == hex"00"`` and
``abi.encodePacked(0x12345678) == abi.encodePacked(uint32(0x12345678)) == hex"12345678"``.
-If padding is needed, explicit type conversions can be used: ``abi.encodePacked(uint16(0x12)) == hex"0012"``. \ No newline at end of file
+If padding is needed, explicit type conversions can be used: ``abi.encodePacked(uint16(0x12)) == hex"0012"``.