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

HIP-904: Token Reject System Contract #15591

Closed
16 tasks done
stoyanov-st opened this issue Sep 25, 2024 · 0 comments · Fixed by #16118
Closed
16 tasks done

HIP-904: Token Reject System Contract #15591

stoyanov-st opened this issue Sep 25, 2024 · 0 comments · Fixed by #16118
Assignees
Labels
Hedera Smart Contract Service Issues related to the Hedera Smart Contract Service. Token Airdrop
Milestone

Comments

@stoyanov-st
Copy link
Contributor

stoyanov-st commented Sep 25, 2024

Implement the Token Reject System Contract described in #15435

  • HSCS System Contract Classes
  • Feature flag
  • E2E tests

Included E2E test cases:
Positive:

  • Verify that the rejectTokens function rejects fungible token for an account.
  • Verify that the rejectTokens function rejects nft token for an account.
  • Verify that the rejectTokens function rejects multiple tokens for an account.
  • Verify that the rejectTokenFT function rejects tokens for a given account.
  • Verify that the rejectTokenNFTs function rejects tokens for a given account and serial number.
  • Verify that the rejectTokenNFTs function rejects 10 nft serials for a given account.

Negative:

  • Verify that the rejectTokens function fails when the sender does not have any associated tokens.
  • Verify that the rejectTokens function fails when the provided fungible token is invalid.
  • Verify that the rejectTokens function fails when the provided nft is invalid.
  • Verify that the rejectTokens function fails when 11 or more tokens are provided.
  • Verify that the rejectTokenFT function fails when the sender does not have any tokens.
  • Verify that the rejectTokensNFT function fails when the sender does not have any tokens.
  • Verify that the rejectTokensNFT function fails when 11 or more serials are provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hedera Smart Contract Service Issues related to the Hedera Smart Contract Service. Token Airdrop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant