corda / net.corda.core.contracts / StateAndContract

StateAndContract

data class StateAndContract

A convenience class for passing around a state and it's contract

Constructors

<init>

StateAndContract(state: ContractState, contract: ContractClassName)

A convenience class for passing around a state and it's contract

Properties

contract

val contract: ContractClassName

The contract that should verify the state

state

val state: ContractState

A state

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.