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

Add Some Wrapper Flows To Facilitate Shell Access #40

Open
opticyclic opened this issue Aug 19, 2019 · 0 comments
Open

Add Some Wrapper Flows To Facilitate Shell Access #40

opticyclic opened this issue Aug 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@opticyclic
Copy link
Contributor

I can create an account from the shell like this:

flow start CreateAccount name: TestAccount

However, it seems impossible to share that account with another node from the shell due to the complex objects in the constructor:

flow start ShareAccountInfo
No matching constructor found:
- [accountInfo: StateAndRef<com.r3.corda.lib.accounts.contracts.states.AccountInfo>, recipients: List<Party>]: missing parameter accountInfo

It would be useful to add extra flows that wrapped the normal flows so they can be called from the command line.

e.g. in this case it would be easier to pass the UUID as a String and a single Party in the same way that the Service works

fun shareAccountInfoWithParty(accountId: UUID, party: Party): CordaFuture<Unit>
@roger-that-dev roger-that-dev added the enhancement New feature or request label Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants