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

Re enroll #4

Merged
merged 19 commits into from
Aug 5, 2024
Merged

Re enroll #4

merged 19 commits into from
Aug 5, 2024

Conversation

byteZorvin
Copy link
Member

  • This adds the reactivate and unblock functionality for a token
  • A token that has been active can be only be deactivated
  • Only Unknown token can be blocked
  • Adds relevant testcases
    image

@byteZorvin byteZorvin requested a review from apoorvsadana August 1, 2024 07:48
#[test]
fn unblock_token_ok() {
let mut mock = mock_state_testing();
let usdc_address = deploy_erc20("usdc", "usdc");
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to deploy a token?

Copy link
Member Author

@byteZorvin byteZorvin Aug 2, 2024

Choose a reason for hiding this comment

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

Oh ya makes sense, can mock an address to do so as well. Do you want me change this in this pr?

Copy link
Contributor

Choose a reason for hiding this comment

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

yep, makes sense to do it here

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated ✅

tests/token_bridge_test.cairo Show resolved Hide resolved
@apoorvsadana apoorvsadana merged commit e6d2ab1 into main Aug 5, 2024
2 checks passed
@byteZorvin byteZorvin deleted the re-enroll branch August 13, 2024 09:35
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.

2 participants