-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
Summary
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
[]sdk.DecCoin{sdk.DecCoin{"denom", sdk.NewDec(10)}}
Problem Definition
The current NewDecCoins method takes Coins... as arguments.
Line 162 in cf46452
| func NewDecCoins(coins Coins) DecCoins { |
Proposal
It would be nice to have the default method take DecCoins... as arguments, or add a separate method for creating DecCoins from DecCoin...
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Reactions are currently unavailable