Chia-Network / chia-dev-guides

Chia Dev Guides - tutorials for developers building on the Chia blockchain
https://devs.chia.net/guides
Apache License 2.0
12 stars 8 forks source link

Issue in Chialisp Concepts - Condition Morphing page #64

Open Ganbin opened 1 year ago

Ganbin commented 1 year ago

In the chapter Currying of the Chialisp Concepts - Condition Morphing page, it say that the line

run -i include any-with-signature.clsp

Yes, the output is just 2.

But for the any-with-signature.clsp file, it returns me this:

(a (q 4 (c 4 (c 5 (c (a 6 (c 2 (c 11 ()))) ()))) 11) (c (q 50 2 (i (l 5) (q 11 (q . 2) (a 6 (c 2 (c 9 ()))) (a 6 (c 2 (c 13 ())))) (q 11 (q . 1) 5)) 1) 1))
Ganbin commented 1 year ago

Another issue in the page:

The coin-double only receive the INNER_PUZZLE curried, but the example say to curry: -a "0xPublicKey" -a 2

I have tried to do

cdv clsp curry coin-doubler.clsp -a "(a (q 2 (q 4 (c 4 (c 5 (c (a 6 (c 2 (c 11 ()))) ()))) 11) (c (q 50 2 (i (l 5) (q 11 (q . 2) (a 6 (c 2 (c 9 ()))) (a 6 (c 2 (c 13 ())))) (q 11 (q . 1) 5)) 1) 1)) (c (q . 0xa0940a8cfd95e614715d9783986b2219488715eb57b2841bfa2840c4d4d264d0edbe854e6cb12ae6083bee4bd007e465) 1))"

But got errors. Something is missing for me to combine those 2 puzzle together.