Algoriddle: unable to execute a .teal - Algorand
Algoriddle: unable to execute a .teal
post by cusma on Dec 8, 2019
Hi there,
I was trying to execute the Algoriddle teal code, but I’m getting some errors.
I placed the algoriddle.teal file in the main directory ~/node then I typed:
./goal clerk send --amount 0 --argb64 "*** my solution ***" --to "*** my address ***" --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to "*** my address ***" --from-program algoriddle.teal --fee 1000
and get this error:
Data directory not specified. Please use -d or set $ALGORAND_DATA in your environment. Exiting.
so I retyped:
./goal clerk send --amount 0 --argb64 "*** my solution ***" --to "*** my address ***" --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to "*** my address ***" --from-program algoriddle.teal --fee 1000 -d ~/node
and get this other error:
Error determining kmd folder (open /Users/username/node/genesis.json: no such file or directory). Ensure the node is running in /Users/username/node.
Any suggestion?
post by dani on Dec 8, 2019
Sounds like this was solved. I believe we can mark as closed.
post by cusma on Dec 8, 2019
Yes, it worked typing the command in this way:
./goal clerk send --amount 0 --argb64 ***my_solution*** --to ***my_address*** --from KFGWR5LVDNWO3RRDNUUZN725S7V7FG5RLYEHUAIROSL6CBKLEHCKVZRXTE --close-to ***my_address*** --from-program ~/node/algoriddle.teal --fee 1000 -d ~/node/data