aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-11-15 05:00:33 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-11-15 05:01:53 +0800
commitd66052554c434ab0f1423ff44b1e645c96a59b34 (patch)
tree99ea85cbb0916c3145f3338bd11402b67425fbe9 /docs/solidity-by-example.rst
parent1e4765fba7a061d8440b5bdb57ba074874c7e171 (diff)
downloaddexon-solidity-d66052554c434ab0f1423ff44b1e645c96a59b34.tar.gz
dexon-solidity-d66052554c434ab0f1423ff44b1e645c96a59b34.tar.zst
dexon-solidity-d66052554c434ab0f1423ff44b1e645c96a59b34.zip
Fix indentation in documentation
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 88ee7913..d07452c5 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -685,9 +685,7 @@ as it provides a number of other security benefits.
::
/// Hashing first makes things easier
var hash = web3.utils.sha3("message to sign");
- web3.eth.personal.sign(hash, web3.eth.defaultAccount, function () {
- console.log("Signed")
- });
+ web3.eth.personal.sign(hash, web3.eth.defaultAccount, function () { console.log("Signed"); });
.. note::
The ``web3.eth.personal.sign`` prepends the length of the message to the signed data. Since we hash first, the message will always be exactly 32 bytes long, and thus this length prefix is always the same.