Skip to content

Commit

Permalink
fix: policy event test
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Apr 28, 2023
1 parent 9768ef5 commit 49f4369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/T04Entity.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ contract T04EntityTest is D03ProtocolDefaults {

Vm.Log[] memory entries = vm.getRecordedLogs();
// events: 4 role assignments + 1 policy creation => we want event at index 4
assertEq(entries[5].topics.length, 2);
assertEq(entries[5].topics[0], keccak256("SimplePolicyCreated(bytes32,bytes32)"));
assertEq(entries[5].topics[1], policyId1);
bytes32 entityId = abi.decode(entries[5].data, (bytes32));
assertEq(entries[6].topics.length, 2);
assertEq(entries[6].topics[0], keccak256("SimplePolicyCreated(bytes32,bytes32)"));
assertEq(entries[6].topics[1], policyId1);
bytes32 entityId = abi.decode(entries[6].data, (bytes32));
assertEq(entityId, entityId1);
}

Expand Down

0 comments on commit 49f4369

Please sign in to comment.