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

Feat: Assert-set-contact-handle #264

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

BrunoAmbricca
Copy link
Contributor

@BrunoAmbricca BrunoAmbricca commented Nov 24, 2024

Pull Request

Changes description

Locate the set_contact_handle function in contracts/src/fund.cairo and enhance it by adding validation to ensure the caller is either VALID_ADDRESS_1 or VALID_ADDRESS_2.
Add a test to verify that the set_contact_handle function works correctly when called by VALID_ADDRESS_1 and another for VALID_ADDRESS_2.

Current output

Captura de pantalla 2024-11-24 140837

Time spent breakdown

1 hour

Comments

Thank you for letting me contribute to the project.

@BrunoAmbricca BrunoAmbricca changed the title Assert-set-contact-handle Feat: Assert-set-contact-handle Nov 24, 2024
@EmmanuelAR EmmanuelAR self-requested a review November 24, 2024 19:03
Copy link
Collaborator

@EmmanuelAR EmmanuelAR left a comment

Choose a reason for hiding this comment

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

lgtm

@EmmanuelAR EmmanuelAR merged commit b69acfd into undefinedorgcr:dev Nov 24, 2024
5 checks passed
@BrunoAmbricca BrunoAmbricca deleted the assert-contact branch November 24, 2024 19:23
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.

[feat] Add new asserts to set_contact_handle
2 participants