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

refactor: using coins.Denoms() from sdk instead of osmoutils #7126

Merged

Conversation

levisyin
Copy link
Contributor

Complete TODO of CoinsDenoms. I have replaced all reference using with coins.Denoms()

// TODO: Get this into the SDK https://github.com/cosmos/cosmos-sdk/issues/12538
func CoinsDenoms(coins sdk.Coins) []string {
	denoms := make([]string, len(coins))
	for i, coin := range coins {
		denoms[i] = coin.Denom
	}
	return denoms
}

@github-actions github-actions bot added C:x/gamm Changes, features and bugs related to the gamm module. C:simulator Edits simulator or simulations C:x/twap Changes to the twap module labels Dec 15, 2023
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.

Nice clean up! LGTM

@mattverse mattverse added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks A:no-changelog labels Dec 15, 2023
@mattverse mattverse merged commit 7419314 into osmosis-labs:main Dec 15, 2023
1 check passed
@levisyin levisyin deleted the refactor/using-sdk-coins2denom branch December 15, 2023 07:43
@mattverse mattverse added the A:backport/v21.x backport patches to v21.x branch label Jan 9, 2024
mergify bot pushed a commit that referenced this pull request Jan 9, 2024
mattverse pushed a commit that referenced this pull request Jan 9, 2024
…7277)

(cherry picked from commit 7419314)

Co-authored-by: levisyin <150114626+levisyin@users.noreply.github.com>
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v21.x backport patches to v21.x branch A:no-changelog C:simulator Edits simulator or simulations C:x/gamm Changes, features and bugs related to the gamm module. C:x/twap Changes to the twap module V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants