dfinity / ic-repl

Apache License 2.0
70 stars 10 forks source link

use ic-repl on staging environments #86

Closed jake-beardo closed 5 months ago

jake-beardo commented 7 months ago

I need to use ic-repl with my staging environment

i thought the command would look something like this:

!/usr/bin/ic-repl -r staging

identity staging "./staging.pem"; import blah = "zzzzz-oqaaa-aaaan-ql32q-cai"; call poop.setPooWasm(file("./poo.wasm"));

and then

ic-repl -r staging local_upload.sh

because my dfx.json looks like this

"networks": { "staging": { "providers": [ "https://icp0.io/" ], "type": "persistent" },

any idea how to do this??
chenyan-dfinity commented 7 months ago

ic-repl doesn't read dfx.json. Looks like your staging network still points to the mainnet, so either ic-repl -r https://icp0.io or ic-repl -r ic would work.