Skip to content

Commit

Permalink
Make SignedTransaction serializable and fix a test by adjusting const…
Browse files Browse the repository at this point in the history
…ructor (corda#1420)
  • Loading branch information
rick-r3 authored Sep 5, 2017
1 parent 17f7e39 commit 875cfab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}
}

0 comments on commit 875cfab

Please sign in to comment.