mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #701 from svantetobias/develop
Fixed mix-up of variable names in Sent event
This commit is contained in:
commit
e4b04870eb
@ -136,12 +136,12 @@ single account.
|
|||||||
|
|
||||||
.. index:: event
|
.. 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
|
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
|
``send``. User interfaces (as well as server appliances of course) can
|
||||||
listen for those events being fired on the blockchain without much
|
listen for those events being fired on the blockchain without much
|
||||||
cost. As soon as it is fired, the listener will also receive the
|
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 ::
|
transactions. In order to listen for this event, you would use ::
|
||||||
|
|
||||||
Coin.Sent().watch({}, '', function(error, result) {
|
Coin.Sent().watch({}, '', function(error, result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user