We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It should be possible to create a DecCoins from a constructor function that takes DecCoin... as inputs. Currently, the only way to do this is
DecCoins
DecCoin...
[]sdk.DecCoin{sdk.DecCoin{"denom", sdk.NewDec(10)}}
The current NewDecCoins method takes Coins... as arguments.
NewDecCoins
Coins...
cosmos-sdk/types/dec_coin.go
Line 162 in cf46452
It would be nice to have the default method take DecCoins... as arguments, or add a separate method for creating DecCoins from DecCoin...
DecCoins...
The text was updated successfully, but these errors were encountered:
I'm in favor of this change. Additionally, I'd also create a NewDecCoinsFromCoin which would be the current implementation of NewDecCoins(coins Coins)
NewDecCoinsFromCoin
NewDecCoins(coins Coins)
Sorry, something went wrong.
PR5430 - cosmos/cosmos-sdk#5430 - Coins -> ...Coin
8a489d9
Successfully merging a pull request may close this issue.
Summary
It should be possible to create a
DecCoins
from a constructor function that takesDecCoin...
as inputs. Currently, the only way to do this is[]sdk.DecCoin{sdk.DecCoin{"denom", sdk.NewDec(10)}}
Problem Definition
The current
NewDecCoins
method takesCoins...
as arguments.cosmos-sdk/types/dec_coin.go
Line 162 in cf46452
Proposal
It would be nice to have the default method take
DecCoins...
as arguments, or add a separate method for creatingDecCoins
fromDecCoin...
For Admin Use
The text was updated successfully, but these errors were encountered: