Skip to content

Commit

Permalink
Update the minimum number of inputs returned from selectCoins.
Browse files Browse the repository at this point in the history
Update the minimum number of inputs from `0` to `1`.

The corresponding `ApiCoinSelection` type specifies a `NonEmpty` list of
`ApiCoinSelectionInput` values:

```
data ApiCoinSelection (n :: NetworkDiscriminant) = ApiCoinSelection
    { inputs :: !(NonEmpty (ApiCoinSelectionInput n))
    , outputs :: ![ApiCoinSelectionOutput n]
    , change :: ![ApiCoinSelectionChange n]
    , certificates :: Maybe (NonEmpty ApiCertificate)
    } deriving (Eq, Generic, Show)
```
  • Loading branch information
jonathanknowles committed Oct 22, 2020
1 parent 61b6dc9 commit f03919d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ x-transactionChange: &transactionChange
x-transactionResolvedInputs: &transactionResolvedInputs
description: A list of transaction inputs
type: array
minItems: 0
minItems: 1
items:
type: object
required:
Expand Down

0 comments on commit f03919d

Please sign in to comment.