Make SignedTransaction serializable and fix a test by adjusting constructor (#1420)

This commit is contained in:
Rick Parker 2017-09-05 11:34:55 +01:00 committed by GitHub
parent 17f7e39183
commit 875cfabd50
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import java.util.function.Predicate
* sign.
*/
// DOCSTART 1
@CordaSerializable
data class SignedTransaction(val txBits: SerializedBytes<CoreTransaction>,
override val sigs: List<TransactionSignature>
) : TransactionWithSignatures {

View File

@ -52,8 +52,7 @@ class KotlinUtilsTest : TestDependencyInjectionBase() {
}
@CordaSerializable
private class CapturingTransientProperty(prefix: String) {
private val seed = random63BitValue()
private class CapturingTransientProperty(val prefix: String, val seed: Long = random63BitValue()) {
val transientVal by transient { prefix + seed + random63BitValue() }
}
}