aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsvantetobias <shj@nineconsult.dk>2016-07-06 16:53:08 +0800
committerGitHub <noreply@github.com>2016-07-06 16:53:08 +0800
commitd45f24106968f419e2cb7d00871f316785dc95cd (patch)
tree022d50230f7f012a1653a8368b299e96d632f92a /docs
parent2edbd0605c361da27292b102c6cd0b0f869b51f7 (diff)
downloaddexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar.gz
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar.bz2
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar.lz
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar.xz
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.tar.zst
dexon-solidity-d45f24106968f419e2cb7d00871f316785dc95cd.zip
Fixed mix-up of variable names in Sent event
event Sent(address from, address to, uint amount) defines "amount" variable but it is two times referred to as "value", which can be a bit confusing for the reader.
Diffstat (limited to 'docs')
-rw-r--r--docs/introduction-to-smart-contracts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index 0cb2b0d0..0122387b 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -136,12 +136,12 @@ single account.
.. index:: event
-The line ``event Sent(address from, address to, uint value);`` declares
+The line ``event Sent(address from, address to, uint amount);`` declares
a so-called "event" which is fired in the last line of the function
``send``. User interfaces (as well as server appliances of course) can
listen for those events being fired on the blockchain without much
cost. As soon as it is fired, the listener will also receive the
-arguments ``from``, ``to`` and ``value``, which makes it easy to track
+arguments ``from``, ``to`` and ``amount``, which makes it easy to track
transactions. In order to listen for this event, you would use ::
Coin.Sent().watch({}, '', function(error, result) {