You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: contracts/GeneralizedTCR.sol
+10-2
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ contract GeneralizedTCR is IArbitrable, IEvidence {
91
91
bytes32[] public itemList; // List of IDs of all submitted items.
92
92
mapping(bytes32=> Item) public items; // Maps the item ID to its data. items[_itemID].
93
93
mapping(address=>mapping(uint=>bytes32)) public arbitratorDisputeIDToItem; // Maps a dispute ID to the ID of the item with the disputed request. arbitratorDisputeIDToItem[arbitrator][disputeID].
94
+
mapping(bytes32=>uint) public itemIDtoIndex; // Maps an item's ID to its position in the list.
94
95
95
96
/* Modifiers */
96
97
@@ -106,7 +107,13 @@ contract GeneralizedTCR is IArbitrable, IEvidence {
0 commit comments