Skip to content

Commit

Permalink
fixed AssetTransferResponderRole
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Beaucamp <[email protected]>
  • Loading branch information
Philip Beaucamp authored and sandeepnRES committed Jun 19, 2023
1 parent 8a43885 commit 7df608a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,8 @@ object ClaimRemoteAsset {
class Acceptor(val session: FlowSession) : FlowLogic<SignedTransaction>() {
@Suspendable
override fun call(): SignedTransaction {
val role = session.receive<ResponderRole>().unwrap { it }
if (role == ResponderRole.ISSUER) {
val role = session.receive<AssetTransferResponderRole>().unwrap { it }
if (role == AssetTransferResponderRole.ISSUER) {
val signTransactionFlow = object : SignTransactionFlow(session) {
override fun checkTransaction(stx: SignedTransaction) = requireThat {
}
Expand All @@ -824,7 +824,7 @@ object ClaimRemoteAsset {
println("Error signing claim asset transaction by issuer: ${e.message}\n")
return subFlow(ReceiveFinalityFlow(session))
}
} else if (role == ResponderRole.OBSERVER) {
} else if (role == AssetTransferResponderRole.OBSERVER) {
val sTx = subFlow(ReceiveFinalityFlow(session, statesToRecord = StatesToRecord.ALL_VISIBLE))
println("Received Tx: ${sTx} and recorded states.")
return sTx
Expand Down

0 comments on commit 7df608a

Please sign in to comment.