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: Resolve duplicate definition, logical checks, and error handling… #374

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Himess
Copy link

@Himess Himess commented Jan 1, 2025

Description

This PR improves the NftClient class to address and resolve the following issues:

1- Duplicate Definition:
Removed duplicate definition of mintFeeRecipient in the createNFTCollection method.

2- Improved Logical Check:
Added independent validation for mintFee to ensure it is not negative.
Verified mintFeeToken is a valid address when provided.

3- Enhanced Error Handling:
Ensured handleError calls return undefined in case of errors, maintaining consistency.

Test Plan

1- Validate createNFTCollection with valid inputs:
-Include valid mintFee and mintFeeToken.
-Confirm correct contract creation.
2- Test createNFTCollection with invalid mintFee:
Provide negative values and verify proper error handling.

3- Test createNFTCollection with invalid mintFeeToken:
Use an invalid address and confirm expected error messages.

4- Simulate handleError cases by providing invalid txOptions and ensure undefined is returned gracefully.

Related Issue

None.

Notes

-Ensure appropriate test cases are added for all validation scenarios.
-Review additional documentation and logs related to mintFeeRecipient to confirm correct usage.

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.

1 participant