Skip to content

Commit

Permalink
feat: add new event to track invalidated hashed
Browse files Browse the repository at this point in the history
  • Loading branch information
dangerousfood committed Oct 11, 2023
1 parent f044587 commit a13ba8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/originators/Originator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ abstract contract Originator is Ownable {

event CounterUpdated();

event HashInvalidated(bytes32 hash);

modifier onlyLoanManager() {
if (msg.sender != address(LM)) {
revert NotLoanManager();
Expand Down Expand Up @@ -219,6 +221,7 @@ abstract contract Originator is Ownable {
if (details.offer.salt != bytes32(0)) {
if (!usedHashes[contextHash]) {
usedHashes[contextHash] = true;
emit HashInvalidated(contextHash);
} else {
revert InvalidOffer();
}
Expand Down

0 comments on commit a13ba8f

Please sign in to comment.