Can't start a IOUFlow from CordaShell (cordapp-template tutorial)

十年热恋 提交于 2020-01-05 05:43:19

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!