mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Make SignedTransaction serializable and fix a test by adjusting constructor (#1420)
This commit is contained in:
parent
17f7e39183
commit
875cfabd50
@ -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 {
|
||||
|
@ -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() }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user