mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Make event name consistent, remove trailing spaces
This commit is contained in:
parent
71389bd423
commit
588b699b25
@ -399,11 +399,11 @@ function depositEther() public payable {
|
||||
event LogSent(address indexed from, address indexed to, uint amount); // note capital first letter
|
||||
|
||||
// Call
|
||||
Sent(from, to, amount);
|
||||
LogSent(from, to, amount);
|
||||
|
||||
// For an external party (a contract or external entity), to watch using
|
||||
// the Web3 Javascript library:
|
||||
Coin.Sent().watch({}, '', function(error, result) {
|
||||
Coin.LogSent().watch({}, '', function(error, result) {
|
||||
if (!error) {
|
||||
console.log("Coin transfer: " + result.args.amount +
|
||||
" coins were sent from " + result.args.from +
|
||||
|
Loading…
Reference in New Issue
Block a user