1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 17:54:26 +02:00

Make event name consistent, remove trailing spaces

This commit is contained in:
Nemil Dalal
2018-03-14 07:10:24 -07:00
parent 71389bd423
commit 588b699b25

View File

@@ -399,11 +399,11 @@ function depositEther() public payable {
event LogSent(address indexed from, address indexed to, uint amount); // note capital first letter event LogSent(address indexed from, address indexed to, uint amount); // note capital first letter
// Call // Call
Sent(from, to, amount); LogSent(from, to, amount);
// For an external party (a contract or external entity), to watch using // For an external party (a contract or external entity), to watch using
// the Web3 Javascript library: // the Web3 Javascript library:
Coin.Sent().watch({}, '', function(error, result) { Coin.LogSent().watch({}, '', function(error, result) {
if (!error) { if (!error) {
console.log("Coin transfer: " + result.args.amount + console.log("Coin transfer: " + result.args.amount +
" coins were sent from " + result.args.from + " coins were sent from " + result.args.from +