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: returning non-success response code instead of reverting when supplykey is missing (#167) #223

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

Conversation

arianejasuwienas
Copy link
Contributor

Description:

Mint and burn methods can not be executed when no supply key is set. But to make it work the same as on the mainnet we will return the response code 180 (HederaResponseCodes.TOKEN_HAS_NO_SUPPLY_KEY) then instead of reverting the transaction.

Related issue(s):

Fixes #167

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@arianejasuwienas arianejasuwienas self-assigned this Jan 29, 2025
@arianejasuwienas arianejasuwienas added the bug A error that causes the feature to behave differently than what was expected based on design docs label Jan 29, 2025
@arianejasuwienas arianejasuwienas marked this pull request as ready for review January 29, 2025 13:09
@arianejasuwienas arianejasuwienas requested a review from a team as a code owner January 29, 2025 13:09
@arianejasuwienas arianejasuwienas changed the title fix: returning code 180 instead of reverting when supplykey is missing fix: returning code 180 instead of reverting when supplykey is missing (#167) Jan 30, 2025
@arianejasuwienas arianejasuwienas changed the title fix: returning code 180 instead of reverting when supplykey is missing (#167) fix: returning non-success response code instead of reverting when supplykey is missing (#167) Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A error that causes the feature to behave differently than what was expected based on design docs
Projects
Status: For Review
Development

Successfully merging this pull request may close these issues.

Fix mintToken/burnToken when there is no supply key
1 participant