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

Mx 14120 esdt supply updates #384

Merged
merged 5 commits into from
May 17, 2023
Merged

Conversation

bogdan-rosianu
Copy link
Contributor

update esdt supplies endpoint - treat the case when the supply of a token is recomputed

@bogdan-rosianu bogdan-rosianu added the enhancement New feature or request label May 2, 2023
@bogdan-rosianu bogdan-rosianu self-assigned this May 2, 2023
@iulianpascalau iulianpascalau self-requested a review May 2, 2023 14:27
@@ -95,6 +103,9 @@ func addToSupply(dstSupply, sourceSupply *data.ESDTSupply) {
dstSupply.Supply = sumStr(dstSupply.Supply, sourceSupply.Supply)
dstSupply.Burned = sumStr(dstSupply.Burned, sourceSupply.Burned)
dstSupply.Minted = sumStr(dstSupply.Minted, sourceSupply.Minted)
if sourceSupply.RecomputedSupply {
Copy link
Contributor

Choose a reason for hiding this comment

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

because of this, we will have a wrong value if one observer returns another value for this field as the others. In this case, I strongly suggest returning an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

iulianpascalau
iulianpascalau previously approved these changes May 4, 2023
sstanculeanu
sstanculeanu previously approved these changes May 5, 2023
@@ -12,10 +12,10 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
- name: Set up Go 1.17.6
uses: actions/setup-go@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: actions/setup-go@v2
uses: actions/setup-go@v3

on all occurences

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@bogdan-rosianu bogdan-rosianu dismissed stale reviews from sstanculeanu and iulianpascalau via de1e768 May 5, 2023 12:47
Copy link
Contributor

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed

@iulianpascalau iulianpascalau merged commit c8d16de into rc/v1.6.0 May 17, 2023
@iulianpascalau iulianpascalau deleted the MX-14120-esdt-supply-updates branch May 17, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants