From d3c15ab7dee5bf40f48ec0392ce74b6a133c122f Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 27 Nov 2015 15:44:06 +0100 Subject: [PATCH] Minor: tighten generic bound on StateAndRef --- src/core/Structures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Structures.kt b/src/core/Structures.kt index af35cbb932..c3b6c9738f 100644 --- a/src/core/Structures.kt +++ b/src/core/Structures.kt @@ -28,7 +28,7 @@ fun ContractState.hash(): SecureHash = SecureHash.sha256((serialize())) data class ContractStateRef(val txhash: SecureHash, val index: Int) : SerializeableWithKryo /** A StateAndRef is simply a (state, ref) pair. For instance, a wallet (which holds available assets) contains these. */ -data class StateAndRef(val state: T, val ref: ContractStateRef) +data class StateAndRef(val state: T, val ref: ContractStateRef) /** An Institution is well known (name, pubkey) pair. In a real system this would probably be an X.509 certificate. */ data class Institution(val name: String, val owningKey: PublicKey) : SerializeableWithKryo {