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

test: more tests #67

Merged
merged 1 commit into from
Dec 27, 2024
Merged

test: more tests #67

merged 1 commit into from
Dec 27, 2024

Conversation

kupermind
Copy link
Collaborator

  • Adding more tests.

Comment on lines +227 to +228
// If balance is 1, the marketplace fee is still 1, and thus mech payment will be zero
if (balance < 2) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A small logical refactor here

@@ -223,7 +223,7 @@ abstract contract OlasMech is Mech, IErrorsMech, ImmutableStorage {
function requestFromMarketplace(address requester, bytes memory data, uint256 requestId) external {
// Check for marketplace access
if (msg.sender != mechMarketplace) {
revert MarketplaceNotAuthorized(msg.sender);
revert MarketplaceOnly(msg.sender, mechMarketplace);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just to be consistent with the rest

@DavidMinarsch DavidMinarsch merged commit 27fbf8b into unchained_mm Dec 27, 2024
2 checks passed
@DavidMinarsch DavidMinarsch deleted the more_tests2 branch December 27, 2024 14:53
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