问题
I'm trying to run the IOU cordapp-template but when I start the IOUFlow from the shell I got this error
If the image isn't readable this is the command I'm providing
start IOUFlow arg0: 10, arg1: "CN=NodeB,O=NodeB,L=New York, C=US"
And this is the Error I got
[iouValue: Int, otherParty: Party]: missing parameter iouValue
However my object IOUFlow is correct, any suggestion on how to work on it?
回答1:
You don't supply the params as arg0
, arg1
etc, but as the names of the parameters themselves.
i.e.
Mon Jul 31 10:45:54 BST 2017>>> flow start ExampleFlow iouValue: 10, otherParty: "CN=NodeB,O=NodeB,L=New York, C=US"
It's important to include the space between the :
and the (e.g.) 10
value for parsing reasons.
回答2:
change it into
start ExampleFlow iouValue: 10, otherParty: "CN=NodeB,O=NodeB,L=New York, C=US"
even when you just run the the java example
来源:https://stackoverflow.com/questions/45400515/cant-start-a-iouflow-from-cordashell-cordapp-template-tutorial