From 68d38651c4e0d99fb7ace0e2a64bc036e5cf9ebd Mon Sep 17 00:00:00 2001 From: Don Johnson Date: Wed, 24 Jun 2020 00:39:30 -0500 Subject: [PATCH] 0.4.21 event update --- tutorial-25/contracts/MultiSigWallet.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorial-25/contracts/MultiSigWallet.sol b/tutorial-25/contracts/MultiSigWallet.sol index bdc1898..2b813e5 100644 --- a/tutorial-25/contracts/MultiSigWallet.sol +++ b/tutorial-25/contracts/MultiSigWallet.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.4.0; +pragma solidity ^0.4.21; contract MultiSigWallet { @@ -54,7 +54,7 @@ contract MultiSigWallet { function () public payable { - DepositFunds(msg.sender, msg.value); + emit DepositFunds(msg.sender, msg.value); } function withdraw(uint amount) @@ -77,7 +77,7 @@ contract MultiSigWallet { _transactions[transactionId] = transaction; _pendingTransactions.push(transactionId); - TransactionCreated(msg.sender, to, amount, transactionId); + emit TransactionCreated(msg.sender, to, amount, transactionId); } function getPendingTransactions() @@ -104,12 +104,12 @@ contract MultiSigWallet { transaction.signatures[msg.sender] = 1; transaction.signatureCount++; - TransactionSigned(msg.sender, transactionId); + emit TransactionSigned(msg.sender, transactionId); if (transaction.signatureCount >= MIN_SIGNATURES) { require(address(this).balance >= transaction.amount); transaction.to.transfer(transaction.amount); - TransactionCompleted(transaction.from, transaction.to, transaction.amount, transactionId); + emit TransactionCompleted(transaction.from, transaction.to, transaction.amount, transactionId); deleteTransaction(transactionId); } }