Skip to content

Commit

Permalink
Add an event to the TestTokenPrice contract
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   contracts/test/TestTokenPrice.sol
  • Loading branch information
mmontour1306 committed Sep 11, 2024
1 parent 7593319 commit 46a3d4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/test/TestTokenPrice.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ contract TestTokenPrice {
mapping(uint256 => uint256) public counters;
address payable immutable helperAddr;

event PriceQuote(string, string);

constructor(address payable _helperAddr) {
helperAddr = _helperAddr;
counters[0] = 100;
Expand All @@ -27,6 +29,7 @@ contract TestTokenPrice {
}

(price) = abi.decode(ret, (string));
emit PriceQuote(token, price);
return price;
}
}

0 comments on commit 46a3d4b

Please sign in to comment.