mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Minor: made the code in IOUState match the description of the changes underneath.
This commit is contained in:
parent
5cda7e30d5
commit
1856b5905e
@ -78,8 +78,8 @@ define an ``IOUState``:
|
||||
|
||||
class IOUState(val value: Int,
|
||||
val lender: Party,
|
||||
val borrower: Party) : ContractState {
|
||||
override val contract: IOUContract = IOUContract()
|
||||
val borrower: Party,
|
||||
override val contract: TemplateContract) : ContractState {
|
||||
|
||||
override val participants get() = listOf(lender, borrower)
|
||||
}
|
||||
@ -153,4 +153,4 @@ We've defined an ``IOUState`` that can be used to represent IOUs as shared facts
|
||||
Corda are simply JVM classes that implement the ``ContractState`` interface. They can have any additional properties and
|
||||
methods you like.
|
||||
|
||||
Next, we'll be writing our ``IOUContract`` to control the evolution of these shared facts over time.
|
||||
Next, we'll be writing our ``IOUContract`` to control the evolution of these shared facts over time.
|
||||
|
Loading…
Reference in New Issue
Block a user