Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the fuel-testnet.sh script usage #548

Closed
perturbing opened this issue Oct 12, 2022 · 4 comments
Closed

On the fuel-testnet.sh script usage #548

perturbing opened this issue Oct 12, 2022 · 4 comments

Comments

@perturbing
Copy link
Contributor

I tried to use this script without a docker cardano node running. Does the following function together with this one, try to catch that case? It's not clear to me. If so, how does it work?

When I had both the client and the node available in my path, the script did not recognize them. I used it like

./fuel-testnet.sh /path/to/node /path/to/sk/key amount

And got that it attempted to use docker instead.

./sample-node-config/gcp/scripts/fuel-testnet.sh: line 42: docker-compose: command not found

I have the feeling of the above function attempts to filter out the case of a node running without docker, but I am not certain. For now, I just changed this line to make it work with the client.

Moreover, not really an issue, the nix-shell of the hydra-poc repo does not bring jq in scope, while this script depends on it.

@pgrange
Copy link
Contributor

pgrange commented Oct 12, 2022

Hi @perturbing ,

Thanks for pointing that out. I'm not 100% sure how much effort were put into this script for it to run in another context than docker-compose but my understanding of it is that, if you want to do so, you should define a CCLI_CMD variable in your environment.

Also, the expected parameters for this script are the testnet, the key and the amount of Lovelace you want to mark as fuel so that would make something like:

#> CCLI_CMD=<path to cardano-cli> ./fuel-testnet.sh <testnet> <key> <amount>

It deserves more clarification, for sure but, in the meantime, does that help?

@pgrange
Copy link
Contributor

pgrange commented Oct 12, 2022

Also, that could help to know that <testnet> should be the path to the configuration of the cardano network you want to use for your test.

The configurations can be found here: https://github.com/input-output-hk/cardano-configurations

For instance this is the directory containing the configuration for the preview network: https://github.com/input-output-hk/cardano-configurations/tree/master/network/preview

@perturbing
Copy link
Contributor Author

@pgrange, thank you for the clarification. I did an export CCLI_CMD = $(which cardano-cli) and then ran the script. Worked like a charm ;)

@pgrange
Copy link
Contributor

pgrange commented Oct 13, 2022

Glad to know that @perturbing thank you for this feedback.

I've created issue #553 to think about how to give a better user experience regarding this fueling step so that people can do that in a more straightforward way in the future.

In the mean time, I close this particular issue as you've been able to work around the problem.

@pgrange pgrange closed this as completed Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants