Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihajlo-Pavlovic committed Feb 26, 2025
1 parent 8949e18 commit ddf7a6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/paranets/ParanetIncentivesPoolStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ contract ParanetIncentivesPoolStorage is INamed, IVersioned, HubDependent, IInit
return (idx < voters.length && voters[idx].addr == addr);
}

function addVoterclaimedToken(address voter, uint256 amount) external {
function addVoterClaimedToken(address voter, uint256 amount) external {
require(msg.sender == paranetIncentivesPoolAddress, "Caller is not incentives pool contract");
uint256 idx = votersIndexes[voter];
if (idx < voters.length && voters[idx].addr == voter) {
Expand Down
2 changes: 0 additions & 2 deletions contracts/storage/paranets/ParanetStagingRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,11 @@ contract ParanetStagingRegistry is INamed, IVersioned, HubDependent {
return collectionSubmitters[paranetId][knowledgeCollectionId];
}

// Add this after stageKnowledgeCollection function
function _addToPendingCollections(bytes32 paranetId, bytes32 knowledgeCollectionId) internal {
pendingCollectionIndexes[paranetId][knowledgeCollectionId] = pendingknowledgeCollectionIds[paranetId].length;
pendingknowledgeCollectionIds[paranetId].push(knowledgeCollectionId);
}

// Add this in reviewKnowledgeCollection function after status update
function _removeFromPendingCollections(bytes32 paranetId, bytes32 knowledgeCollectionId) internal {
uint256 index = pendingCollectionIndexes[paranetId][knowledgeCollectionId];
uint256 lastIndex = pendingknowledgeCollectionIds[paranetId].length - 1;
Expand Down

0 comments on commit ddf7a6a

Please sign in to comment.