com.r3corda.contracts.cash / kotlin.collections.Iterable / sumFungible

sumFungible

fun <T> Iterable<ContractState>.sumFungible(): <ERROR CLASS>

Sums the asset states in the list, throwing an exception if there are none, or if any of the asset states cannot be added together (i.e. are different tokens).