Skip to content

Commit

Permalink
Finance: add amount to NewTransaction event (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai authored Apr 25, 2018
1 parent b9a46d2 commit a52f369
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/finance/artifact.json
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,11 @@
"indexed": true,
"name": "entity",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "NewTransaction",
Expand Down
4 changes: 2 additions & 2 deletions apps/finance/contracts/Finance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract Finance is AragonApp {
event NewPeriod(uint256 indexed periodId, uint64 periodStarts, uint64 periodEnds);
event SetBudget(address indexed token, uint256 amount, bool hasBudget);
event NewPayment(uint256 indexed paymentId, address indexed recipient, uint64 maxRepeats);
event NewTransaction(uint256 indexed transactionId, bool incoming, address indexed entity);
event NewTransaction(uint256 indexed transactionId, bool incoming, address indexed entity, uint256 amount);
event ChangePaymentState(uint256 indexed paymentId, bool disabled);
event ChangePeriodDuration(uint64 newDuration);
event PaymentFailure(uint256 paymentId);
Expand Down Expand Up @@ -531,7 +531,7 @@ contract Finance is AragonApp {
if (period.firstTransactionId == 0)
period.firstTransactionId = transactionId;

NewTransaction(transactionId, _incoming, _entity);
NewTransaction(transactionId, _incoming, _entity, _amount);
}

function _canMakePayment(address _token, uint256 _amount) internal view returns (bool) {
Expand Down

0 comments on commit a52f369

Please sign in to comment.