aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-29 21:28:42 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 12:08:35 +0800
commit23379e10614cccf9126fca09781a1d2dcdfede90 (patch)
tree089c555949ed76eea06e611e8a9eebc638e248e9 /docs/abi-spec.rst
parentb7fb1bc0a6e7311bf09118c228ba8d93dc944328 (diff)
downloaddexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar.gz
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar.bz2
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar.lz
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar.xz
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.tar.zst
dexon-solidity-23379e10614cccf9126fca09781a1d2dcdfede90.zip
Ensure each code snippet in the docs can be extracted for tests
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst26
1 files changed, 13 insertions, 13 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 77d15026..8bd6d1a7 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -330,15 +330,15 @@ For example,
::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.4.0;
- contract Test {
- function Test(){ b = 0x12345678901234567890123456789012; }
- event Event(uint indexed a, bytes32 b);
- event Event2(uint indexed a, bytes32 b);
- function foo(uint a) { Event(a, b); }
- bytes32 b;
- }
+ contract Test {
+ function Test(){ b = 0x12345678901234567890123456789012; }
+ event Event(uint indexed a, bytes32 b);
+ event Event2(uint indexed a, bytes32 b);
+ function foo(uint a) { Event(a, b); }
+ bytes32 b;
+ }
would result in the JSON:
@@ -377,11 +377,11 @@ As an example, the code
::
- contract Test {
- struct S { uint a; uint[] b; T[] c; }
- struct T { uint x; uint y; }
- function f(S s, T t, uint a) { }
- }
+ contract Test {
+ struct S { uint a; uint[] b; T[] c; }
+ struct T { uint x; uint y; }
+ function f(S s, T t, uint a) { }
+ }
would result in the JSON: