ChainCashLabs / chaincash-rs

ChainCash Server: Free Banking for Everyone!
Creative Commons Zero v1.0 Universal
6 stars 4 forks source link

`sigma-rust` compiler fails to compile chaincash contracts #17

Open ross-weir opened 10 months ago

ross-weir commented 10 months ago

Getting a parsing error, haven't dug very deep on what exactly the cause could be.

Compiles fine in https://escript.online/ & the node endpoint at /script/p2sAddress.

Maybe just use the node for now and take a closer look later. To use the node endpoint the contract string needs to be escaped so its valid json:

contract.replace("\n", "\\n").replace("\"", "\\\"");