mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
Correct flow calls to generateSpend() (#1643)
Correct flow calls to generateSpend() to match 1.0 API changes
This commit is contained in:
parent
7258c910c8
commit
be0e7a8877
@ -51,7 +51,7 @@ open class CashPaymentFlow(
|
||||
Cash.generateSpend(serviceHub,
|
||||
builder,
|
||||
amount,
|
||||
ourIdentity,
|
||||
ourIdentityAndCert,
|
||||
anonymousRecipient,
|
||||
issuerConstraint)
|
||||
} catch (e: InsufficientBalanceException) {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user