Correct flow calls to generateSpend() (#1643)

Correct flow calls to generateSpend() to match 1.0 API changes
This commit is contained in:
Ross Nicoll 2017-09-25 22:53:49 +01:00 committed by GitHub
parent 7258c910c8
commit be0e7a8877
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ open class CashPaymentFlow(
Cash.generateSpend(serviceHub,
builder,
amount,
ourIdentity,
ourIdentityAndCert,
anonymousRecipient,
issuerConstraint)
} catch (e: InsufficientBalanceException) {

View File

@ -219,7 +219,7 @@ object TwoPartyTradeFlow {
val ptx = TransactionBuilder(notary)
// Add input and output states for the movement of cash, by using the Cash contract to generate the states
val (tx, cashSigningPubKeys) = Cash.generateSpend(serviceHub, ptx, tradeRequest.price, ourIdentity, tradeRequest.payToIdentity.party)
val (tx, cashSigningPubKeys) = Cash.generateSpend(serviceHub, ptx, tradeRequest.price, ourIdentityAndCert, tradeRequest.payToIdentity.party)
// Add inputs/outputs/a command for the movement of the asset.
tx.addInputState(assetForSale)