mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
added map it.data
This commit is contained in:
parent
43adbfd66c
commit
6ee40a4436
@ -448,7 +448,7 @@ logic.
|
||||
is Commands.Redeem -> {
|
||||
// Redemption of the paper requires movement of on-ledger cash.
|
||||
val input = inputs.single()
|
||||
val received = tx.outputs.sumCashBy(input.owner)
|
||||
val received = tx.outputs.map{ it.data }.sumCashBy(input.owner)
|
||||
val time = timeWindow?.fromTime ?: throw IllegalArgumentException("Redemptions must be timestamped")
|
||||
requireThat {
|
||||
"the paper must have matured" using (time >= input.maturityDate)
|
||||
|
Loading…
Reference in New Issue
Block a user