mirror of
https://github.com/corda/corda.git
synced 2024-12-22 22:32:26 +00:00
contracts: Fix generateExit signers
This commit is contained in:
parent
b676e764fe
commit
b86beab328
@ -80,8 +80,8 @@ abstract class AbstractConserveAmount<S : FungibleAsset<T>, C : CommandData, T :
|
|||||||
|
|
||||||
for (state in gathered) tx.addInputState(state)
|
for (state in gathered) tx.addInputState(state)
|
||||||
for (state in outputs) tx.addOutputState(state)
|
for (state in outputs) tx.addOutputState(state)
|
||||||
tx.addCommand(generateMoveCommand())
|
tx.addCommand(generateMoveCommand(), gathered.map { it.state.data.owner })
|
||||||
tx.addCommand(generateExitCommand(amountIssued), amountIssued.token.issuer.party.owningKey)
|
tx.addCommand(generateExitCommand(amountIssued), gathered.flatMap { it.state.data.exitKeys })
|
||||||
return amountIssued.token.issuer.party.owningKey
|
return amountIssued.token.issuer.party.owningKey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user