Skip to content

Commit

Permalink
added taskId to event params
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Dec 4, 2024
1 parent 81f1391 commit b941dcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BuyerAgent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ contract BuyerAgent is Ownable {
event PurchaseRequest(uint256 indexed taskId, uint256 indexed round);

/// @notice Emitted when a purchase is made.
event Purchase(uint256 indexed round);
event Purchase(uint256 indexed taskId, uint256 indexed round);

/// @notice Emitted when the state is updated.
event StateUpdate(uint256 indexed round);
event StateUpdate(uint256 indexed taskId, uint256 indexed round);

/*//////////////////////////////////////////////////////////////
STORAGE
Expand Down Expand Up @@ -235,7 +235,7 @@ contract BuyerAgent is Ownable {
// update taskId as completed
isOracleRequestProcessed[taskId] = true;

emit StateUpdate(round);
emit StateUpdate(taskId, round);
}

/// @notice Function to buy the asset from the Swan with the given assed address.
Expand Down Expand Up @@ -277,7 +277,7 @@ contract BuyerAgent is Ownable {
// update taskId as completed
isOracleRequestProcessed[taskId] = true;

emit Purchase(round);
emit Purchase(taskId, round);
}

/// @notice Function to withdraw the tokens from the contract.
Expand Down

0 comments on commit b941dcd

Please sign in to comment.