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
// 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 +