Rename verifyMoveCommand()

Rename verifyMoveCommands() to verifyMoveCommand() to represent that move commands must
be singular within a transaction.
This commit is contained in:
Ross Nicoll 2016-05-27 16:49:07 +01:00
parent af53a52b06
commit 723e610dfc
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ abstract class FungibleAsset<T> : Contract {
(inputAmount == outputAmount + amountExitingLedger)
}
verifyMoveCommands<Commands.Move>(inputs, tx)
verifyMoveCommand<Commands.Move>(inputs, tx)
}
}
}

View File

@ -92,7 +92,7 @@ fun List<AuthenticatedObject<CommandData>>.getTimestampByName(vararg names: Stri
*/
@Throws(IllegalArgumentException::class)
// TODO: Can we have a common Move command for all contracts and avoid the reified type parameter here?
inline fun <reified T : CommandData> verifyMoveCommands(inputs: List<OwnableState>, tx: TransactionForContract) {
inline fun <reified T : CommandData> verifyMoveCommand(inputs: List<OwnableState>, tx: TransactionForContract) {
// Now check the digital signatures on the move command. Every input has an owning public key, and we must
// see a signature from each of those keys. The actual signatures have been verified against the transaction
// data by the platform before execution.