Minor: remove a utility method that's used only once from WireTransaction

This commit is contained in:
Mike Hearn 2016-04-18 18:39:01 +02:00
parent 964f2b502e
commit 77fd7941f9
2 changed files with 1 additions and 6 deletions

View File

@ -58,11 +58,6 @@ data class WireTransaction(val inputs: List<StateRef>,
} }
} }
/** Serialises and returns this transaction as a [SignedTransaction] with no signatures attached. */
fun toSignedTransaction(withSigs: List<DigitalSignature.WithKey>): SignedTransaction {
return SignedTransaction(serialized, withSigs)
}
/** Returns a [StateAndRef] for the given output index. */ /** Returns a [StateAndRef] for the given output index. */
@Suppress("UNCHECKED_CAST") @Suppress("UNCHECKED_CAST")
fun <T : ContractState> outRef(index: Int): StateAndRef<T> { fun <T : ContractState> outRef(index: Int): StateAndRef<T> {

View File

@ -351,7 +351,7 @@ class TransactionGroupDSL<T : ContractState>(private val stateType: Class<T>) {
allPubKeys -= key.public allPubKeys -= key.public
} }
} }
wtx.toSignedTransaction(sigs) SignedTransaction(bits, sigs)
} }
} }
} }