dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Parsing error on chain created from Apiroom #258

Open matteo-cristino opened 1 year ago

matteo-cristino commented 1 year ago

Steps to reproduce

In Apiroom, when using the following contract inside a chain

Given nothing
When I set 'nameOfNewObject' to '100' as 'string'
Then print data

The following error is returned

 Zencode pattern not found (when): When I set 'nameOfNewObject' to 1.0 as 'string'

If I save the chain, then, from swagger, I can see that the above statement is present in my chain even if it was not in the original contract.

Expected behavior

Create a chain from contracts should not modify the contracts.

System configuration

All test were performed on apiroom.