mirror of
https://github.com/corda/corda.git
synced 2025-03-10 22:44:20 +00:00
contracts: remove TODO
This commit is contained in:
parent
a72bab0fb7
commit
9ec1ec786f
@ -46,8 +46,6 @@ fun generateState(notary: Party = DUMMY_NOTARY) = DummyContract.State(Random().n
|
||||
// contract.accepts() -> should pass
|
||||
// contract `fails requirement` "some substring of the error message"
|
||||
// }
|
||||
//
|
||||
// TODO: Make it impossible to forget to test either a failure or an accept for each transaction{} block
|
||||
|
||||
infix fun Cash.State.`owned by`(owner: PublicKey) = copy(owner = owner)
|
||||
infix fun Cash.State.`issued by`(party: Party) = copy(amount = Amount<Issued<Currency>>(amount.quantity, issuanceDef.copy(issuer = deposit.copy(party = party))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user