Skip to content

Commit

Permalink
Removing index on emitted event
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Sep 18, 2024
1 parent 8157734 commit 5eb35b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/OmenAgentResultMapping.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Prediction} from "./structs.sol";
/// This contract allows for mapping market addresses to IPFS hashes containing agent results.
contract OmenAgentResultMapping {
event AgentResultAdded(
address indexed marketAddress, bytes32 indexed ipfsHash, address indexed publisherAddress, bytes32 txHash
address indexed marketAddress, bytes32 ipfsHash, address indexed publisherAddress, bytes32 txHash
);

// Mapping of a market address to an array of IPFS hashes (bytes32).
Expand Down
4 changes: 2 additions & 2 deletions test/OmenAgentResultMapping.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Prediction} from "../src/structs.sol";

contract OmenAgentResultMappingTest is Test {
event AgentResultAdded(
address indexed marketAddress, bytes32 indexed ipfsHash, address indexed publisherAddress, bytes32 txHash
address indexed marketAddress, bytes32 ipfsHash, address indexed publisherAddress, bytes32 txHash
);

OmenAgentResultMapping public omenAgentResultMapping;
Expand Down Expand Up @@ -62,7 +62,7 @@ contract OmenAgentResultMappingTest is Test {
// ToDo - Add Use for Prediction
Prediction memory prediction = buildPrediction("test-input1");

vm.expectEmit(true, true, true, true);
vm.expectEmit(true, true, false, true);
vm.startPrank(publisher);
emit AgentResultAdded(marketAddress, prediction.ipfsHash, prediction.publisherAddress, prediction.txHash);
omenAgentResultMapping.addPrediction(marketAddress, prediction);
Expand Down

0 comments on commit 5eb35b7

Please sign in to comment.