Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix requests count and scripts #89

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Fix requests count and scripts #89

merged 2 commits into from
Jan 24, 2025

Conversation

kupermind
Copy link
Collaborator

  • Fix requests count;
  • Update a script to track NVM subscription credits.

@@ -51,7 +51,7 @@ struct RequestInfo {
/// @author Andrey Lebedev - <[email protected]>
/// @author Silvere Gangloff - <[email protected]>
contract MechMarketplace is IErrorsMarketplace {
event CreateMech(address indexed mech, uint256 indexed serviceId);
event CreateMech(address indexed mech, uint256 indexed serviceId, address indexed mechFactory);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to add a factory address into this event

Comment on lines +762 to +764
mapDeliveryCounts[requester] += numRequests;
// Increase the amount of mech delivery counts
mapMechDeliveryCounts[msg.sender]++;
mapMechDeliveryCounts[msg.sender] += numRequests;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix as we are dealing with batches :)

@mariapiamo mariapiamo merged commit 71ccca9 into main Jan 24, 2025
2 checks passed
@kupermind kupermind deleted the scripts branch January 24, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants