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

feat(math): add mutative api for BigDec.BigInt() #6867

Closed
wants to merge 10 commits into from

Conversation

DongLieu
Copy link
Contributor

Similar to PR17803 I think we should also have such an API

Copy link
Member

@mattverse mattverse left a comment

Choose a reason for hiding this comment

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

mostly looks good, requested change for method name change :)

osmomath/decimal.go Outdated Show resolved Hide resolved
@mattverse mattverse self-assigned this Nov 15, 2023
@mattverse
Copy link
Member

Please ping me once r4r

@DongLieu
Copy link
Contributor Author

DongLieu commented Nov 21, 2023

I am sorry

Copy link
Member

@pysel pysel left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I think it would be better to make a table-driven unit test for this one and use the functionality for asserting mut/non-mut results we already have for tests. Example: https://github.com/osmosis-labs/osmosis/blob/main/osmomath/decimal_test.go#L1585

@DongLieu
Copy link
Contributor Author

Thanks you

@DongLieu
Copy link
Contributor Author

I'm waiting for a PR cosmos/cosmos-sdk#18576 at cosmos hub. Give me more time

@DongLieu
Copy link
Contributor Author

DongLieu commented Dec 4, 2023

check it out in PR #6993

@DongLieu DongLieu closed this Dec 4, 2023
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.

3 participants