Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corda 4 tutorial has syntax error #76

Open
fuxiocteract opened this issue May 10, 2020 · 0 comments
Open

Corda 4 tutorial has syntax error #76

fuxiocteract opened this issue May 10, 2020 · 0 comments

Comments

@fuxiocteract
Copy link

in CarFlow.kt

The following code doesn't work with current dependency for CollectSignatureFlow, FinalityFlow and ReceiveFinalityFlow, what should they actually be?

in CarFlow.kt, in CarIssueInitiator class, the tutorial has:
val sessions = (carState.participants - ourIdentity).map { initiateFlow(it as Party) } val stx = subFlow(CollectSignaturesFlow(tx, sessions)) return subFlow(FinalityFlow(stx, sessions))
The last 2 lines has syntax error, CollectSignaturesFlow does not have an implementation taking a list of FlowSession, and FinalityFlow need to pass a ProgressTracker it seems, or convert sessions to Array

in CarIssueResponder class,
the tutorial has
return subFlow(ReceiveFinalityFlow(counterpartySession, txWeJustSignedId))
ReceiveFinalityFlow implementation does not has a version taking a FlowLogic as param.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant