Skip to content

Create DecCoins from DecCoin #5430

@karzak

Description

@karzak

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.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions