Giter Site home page Giter Site logo

Comments (2)

jeromesimeon avatar jeromesimeon commented on September 24, 2024

This seems to have been fixed in the switch to Ergo:

bash-3.2$ cicero execute --request request.json 
15:56:33 - info: Logging initialized. 2018-06-22T19:56:33.791Z
15:56:34 - info: Using current directory as template folder
15:56:34 - info: Loading a default sample.txt file.
15:56:34 - info: Loading a default state.json file.
15:56:35 - info: {"clause":"fragile-goods@0.2.0-0eea79d5513163e5beb03d0a98aecb951372dad2e2e232f3bdb28fc7c8f69c0b","request":{"$class":"io.clause.demo.fragileGoods.DeliveryUpdate","startTime":"January 1, 2018 16:34:00","finishTime":"January 1, 2018 16:34:11","status":"ARRIVED","accelerometerReadings":[0.2,0.6,-0.3,-0.7,0.1]},"response":{"$class":"io.clause.demo.fragileGoods.PayOut","amount":{"$class":"org.accordproject.money.MonetaryAmount","doubleValue":790,"currencyCode":"USD"},"transactionId":"60700e2d-d9db-419b-8748-30138d3c7405","timestamp":"2018-06-22T19:56:35.181Z"},"state":{"$class":"org.accordproject.cicero.contract.AccordContractState","stateId":"org.accordproject.cicero.contract.AccordContractState#1"},"emit":[]}
bash-3.2$ cicero execute --request request-empty.json 
15:56:43 - info: Logging initialized. 2018-06-22T19:56:43.532Z
15:56:44 - info: Using current directory as template folder
15:56:44 - info: Loading a default sample.txt file.
15:56:44 - info: Loading a default state.json file.
15:56:44 - info: {"clause":"fragile-goods@0.2.0-bcb0c557c772213426bc59d4ac05640a0959b9352ff72d7974c80c057e7d139c","request":{"$class":"io.clause.demo.fragileGoods.DeliveryUpdate","startTime":"January 1, 2018 16:34:00","finishTime":"January 1, 2018 16:34:11","status":"ARRIVED","accelerometerReadings":[]},"response":{"$class":"io.clause.demo.fragileGoods.PayOut","amount":{"$class":"org.accordproject.money.MonetaryAmount","doubleValue":800,"currencyCode":"USD"},"transactionId":"a00b5558-a62b-4e17-a368-01cb713e0a3c","timestamp":"2018-06-22T19:56:44.937Z"},"state":{"$class":"org.accordproject.cicero.contract.AccordContractState","stateId":"org.accordproject.cicero.contract.AccordContractState#1"},"emit":[]}

from cicero-template-library.

jeromesimeon avatar jeromesimeon commented on September 24, 2024

Added a test in PR #77. Closing this issue.

from cicero-template-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.