aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-28 18:35:18 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-28 18:59:35 +0800
commitdd2cc899bbf71c1234d3bc1f2ea55c4716dbfd0d (patch)
tree45575748da47b868837cf2e236211f6a3460ed92 /docs
parent2b3a49f702579cfa78d7cfa90600894a31f55e9e (diff)
downloaddexon-solidity-dd2cc899bbf71c1234d3bc1f2ea55c4716dbfd0d.tar.gz
dexon-solidity-dd2cc899bbf71c1234d3bc1f2ea55c4716dbfd0d.tar.zst
dexon-solidity-dd2cc899bbf71c1234d3bc1f2ea55c4716dbfd0d.zip
Fix lists and links
Diffstat (limited to 'docs')
-rw-r--r--docs/abi-spec.rst1
-rw-r--r--docs/contracts.rst1
-rw-r--r--docs/miscellaneous.rst2
3 files changed, 3 insertions, 1 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index fffd9a2c..ab7a8b32 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -214,6 +214,7 @@ In total::
0xfce353f661626300000000000000000000000000000000000000000000000000000000006465660000000000000000000000000000000000000000000000000000000000
If we wanted to call `sam` with the arguments `"dave"`, `true` and `[1,2,3]`, we would pass 292 bytes total, broken down into:
+
- `0xa5643bf2`: the Method ID. This is derived from the signature `sam(bytes,bool,uint256[])`. Note that `uint` is replaced with its canonical representation `uint256`.
- `0x0000000000000000000000000000000000000000000000000000000000000060`: the location of the data part of the first parameter (dynamic type), measured in bytes from the start of the arguments block. In this case, `0x60`.
- `0x0000000000000000000000000000000000000000000000000000000000000001`: the second parameter: boolean true.
diff --git a/docs/contracts.rst b/docs/contracts.rst
index ef09d935..fbf1be87 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -508,6 +508,7 @@ Pure Functions
Functions can be declared ``pure`` in which case they promise not to read from or modify the state.
In addition to the list of state modifying statements explained above, the following are considered reading from the state:
+
#. Reading from state variables.
#. Accessing ``this.balance`` or ``<address>.balance``.
#. Accessing any of the members of ``block``, ``tx``, ``msg`` (with the exception of ``msg.sig`` and ``msg.data``).
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index e78c4807..b014a452 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -330,7 +330,7 @@ Encoding of the Metadata Hash in the Bytecode
Because we might support other ways to retrieve the metadata file in the future,
the mapping ``{"bzzr0": <Swarm hash>}`` is stored
-[CBOR](https://tools.ietf.org/html/rfc7049)-encoded. Since the beginning of that
+`CBOR <https://tools.ietf.org/html/rfc7049>`_-encoded. Since the beginning of that
encoding is not easy to find, its length is added in a two-byte big-endian
encoding. The current version of the Solidity compiler thus adds the following
to the end of the deployed bytecode::