aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-03 00:29:51 +0800
committerGitHub <noreply@github.com>2018-07-03 00:29:51 +0800
commitf5e1cf7753bb6a87f5a9a11db6a497dc4b2ccca5 (patch)
treec98f65a74a6f95cf0f7e5aee0fc90cf72402e1eb /docs/abi-spec.rst
parent0f3872694bb668274e10e72b1a2c3092b7d5162b (diff)
parentf74a9a346b1e187567f93a6053a0eb7a7a964f99 (diff)
downloaddexon-solidity-f5e1cf7753bb6a87f5a9a11db6a497dc4b2ccca5.tar.gz
dexon-solidity-f5e1cf7753bb6a87f5a9a11db6a497dc4b2ccca5.tar.zst
dexon-solidity-f5e1cf7753bb6a87f5a9a11db6a497dc4b2ccca5.zip
Merge pull request #4402 from ethereum/docsConstructor
Update 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..366ca951 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"``.