通过交互式外壳启动corda流

问题描述 投票:0回答:1

我正在尝试以此从外壳启动流

flow start LoanIssueFlow$InitiatorFlow owner: "O=PartyA,L=London,C=GB", supplier: "O=Notary,L=London,C=GB", bank: "O=Notary,L=London,C=GB", amount: Currencies.POUNDS(4), by: new Date(), penalty: 4, paid: Currencies.POUNDS(0)

流程构造器如下:

public InitiatorFlow(Party owner, Party supplier, Party bank, Amount<Currency> amount, Date by, double penalty, Amount<Currency> paid) {
        this.state = new LoanState(owner, supplier, bank, amount, by, penalty, paid);
    }

我遇到此错误:

No matching constructor found:
- [net.corda.core.identity.Party, net.corda.core.identity.Party, net.corda.core.identity.Party, net.corda.core.contracts.Amount<java.util.Currency>, java.util.Date, double, net.corda.core.contracts.Amount<java.util.Currency>]: Could not parse as a command: Did not recognise the currency in Currencies.POUNDS(4) or could not parse

谢谢您的帮助

corda
1个回答
0
投票

这是启动该流程的正确方法:

flow start LoanIssueFlow$InitiatorFlow owner: "O=PartyA,L=London,C=GB", supplier: "O=Notary,L=London,C=GB", bank: "O=Notary,L=London,C=GB", amount: $100, by: 2020-01-01, penalty: 4, paid: $0
© www.soinside.com 2019 - 2024. All rights reserved.