Skip to content

Commit

Permalink
feat(contracts): escrow-v2-general-escrow-event-update
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Jan 8, 2024
1 parent be7d75c commit b771819
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contracts/src/arbitration/arbitrables/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ contract Escrow is IArbitrableV2 {
/// @param _amount The initial amount in the transaction.
event TransactionCreated(
uint256 indexed _transactionID,
string _transactionUri,
address indexed _buyer,
address indexed _seller,
uint256 _amount
uint256 _amount,
uint256 _deadline
);

/// @dev To be emitted when a transaction is resolved, either by its
Expand Down Expand Up @@ -172,6 +174,7 @@ contract Escrow is IArbitrableV2 {
/// @return transactionID The index of the transaction.
function createTransaction(
uint256 _timeoutPayment,
string memory _transactionUri,
address payable _seller,
string memory _templateData,
string memory _templateDataMappings
Expand All @@ -186,7 +189,7 @@ contract Escrow is IArbitrableV2 {

transactionID = transactions.length - 1;

emit TransactionCreated(transactionID, msg.sender, _seller, msg.value);
emit TransactionCreated(transactionID, _transactionUri, msg.sender, _seller, msg.value, transaction.deadline);
}

/// @dev Pay seller. To be called if the good or service is provided.
Expand Down

0 comments on commit b771819

Please sign in to comment.