mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Minor: Edit reference after copying amount
Edit reference after copying amount in cash tests, so that when the amount includes a reference, the copying doesn't replace the changed reference.
This commit is contained in:
parent
77b3f3968e
commit
eae3efdf02
@ -243,8 +243,8 @@ class CashTests {
|
||||
// Can't change deposit reference when splitting.
|
||||
transaction {
|
||||
input { inState }
|
||||
output { outState.editDepositRef(0).copy(amount = inState.amount / 2) }
|
||||
output { outState.editDepositRef(1).copy(amount = inState.amount / 2) }
|
||||
output { outState.copy(amount = inState.amount / 2).editDepositRef(0) }
|
||||
output { outState.copy(amount = inState.amount / 2).editDepositRef(1) }
|
||||
this `fails requirement` "for deposit [01] at issuer MegaCorp the amounts balance"
|
||||
}
|
||||
// Can't mix currencies.
|
||||
|
Loading…
x
Reference in New Issue
Block a user