Comments (2)
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.
Added a test in PR #77. Closing this issue.
from cicero-template-library.
Related Issues (20)
- Promissory Note template tests do not work as intended HOT 5
- "Follow the instructions in the docs" link in readme is broken HOT 4
- Spelling Mistake in readme HOT 1
- Broken link HOT 9
- Page not found HOT 1
- Update nav logo to match models.accordproject.org HOT 5
- Template author styling changes HOT 8
- Accord Project logo not showing up in navbar HOT 3
- Publish Compiled Archives HOT 1
- New Parser: Copyright License HOT 1
- New Parser: IP Payment
- New Parser: SAFT
- New Parser: Supply Agreement Perishable Goods
- New Parser: Interest Rate Swap
- Small bug in the car rental template
- Migrate CI/CD to GitHub Actions HOT 2
- Invalid Link for Docusign Connect at Home Page HOT 2
- String error at ~/src/supply-agreement-loc/text/grammar.tem.md
- update: copyright year in footer HOT 1
- Introduce Open In VSCode option for templates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cicero-template-library.