-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: returning non-success response code instead of reverting when supplykey is missing (#167) #223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
One more thing, there is a test in hts.e2e.js
currently skipped "should not mint because there is no supply key'"
. We should enable it with this change.
c7bea12
to
488c8e1
Compare
488c8e1
to
6f86473
Compare
…upplykey is missing (#167) Signed-off-by: Mariusz Jasuwienas <[email protected]>
6f86473
to
aff16b6
Compare
This is completly new approach to implement this task. That is why I've even removed all of the previous commits from the branch. |
…upplykey is missing in hh (#167) Signed-off-by: Mariusz Jasuwienas <[email protected]>
…upplykey is missing in hh (#167) Signed-off-by: Mariusz Jasuwienas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to include validation tests from now on to ensure the functionality we add or change matches real HTS.
Signed-off-by: Mariusz Jasuwienas <[email protected]>
…g keys related code (#167) Signed-off-by: Mariusz Jasuwienas <[email protected]>
No need, better to keep commits for future reference so others can see the what has been done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please enable should not mint because there is no supply key' in
hts.e2e.js` test. I checked and the test now passes. After that we should be good to go.
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Thanks for the effort!
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