Where does "./sandbox goal clerk compile" execute? - General - Algorand
Where does “./sandbox goal clerk compile” execute?
post by danger_dave on Jun 16, 2021
I’m having trouble compiling “.teal” files using sandbox. The file definitely exists, and I can run other goal commands successfully, like “goal node status”.
I have tried moving the “.teal” file to the “data” folder but see the same error. Any suggestions?
post by fabrice on Jun 16, 2021
It executes inside the docker container of the sandbox.
You can use ./sandbox copy ... to copy files there.
post by scholtz on Jun 16, 2021
Hi fabrice… i was playing with creating dapp and it told me the same…
./sandbox goal app create --creator RYQ4ZBRZB3QECPWO44XSWOFWPMUOXLQHSBFMTM7MBTO2V4B47LF2SO4LSM --approval-prog approval_program.teal --clear-prog clear_state_program.teal --global-byteslices 0 --global-ints 1 --local-byteslices 0 --local-ints 0
approval_program.teal: open approval_program.teal: no such file or directory
running
./sandbox copy approval_program.teal
./sandbox copy clear_state_program.teal
did the thing…
perhaps someone should put it to the hello world app documentation…
post by danger_dave on Jun 16, 2021
Thank you, fabrice! That works perfectly!
post by fabrice on Jun 17, 2021
I’ve made a PR: