mirror of
https://github.com/corda/corda.git
synced 2025-02-06 11:09:18 +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,
|
Cash.generateSpend(serviceHub,
|
||||||
builder,
|
builder,
|
||||||
amount,
|
amount,
|
||||||
ourIdentity,
|
ourIdentityAndCert,
|
||||||
anonymousRecipient,
|
anonymousRecipient,
|
||||||
issuerConstraint)
|
issuerConstraint)
|
||||||
} catch (e: InsufficientBalanceException) {
|
} catch (e: InsufficientBalanceException) {
|
||||||
|
@ -219,7 +219,7 @@ object TwoPartyTradeFlow {
|
|||||||
val ptx = TransactionBuilder(notary)
|
val ptx = TransactionBuilder(notary)
|
||||||
|
|
||||||
// Add input and output states for the movement of cash, by using the Cash contract to generate the states
|
// 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.
|
// Add inputs/outputs/a command for the movement of the asset.
|
||||||
tx.addInputState(assetForSale)
|
tx.addInputState(assetForSale)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user