Skip to content

Commit

Permalink
Merge pull request #68 from dfinity/@anchpop/move-versions-to-settings
Browse files Browse the repository at this point in the history
Move DFX (and extensions) versions to settings
  • Loading branch information
aterga authored May 22, 2024
2 parents 86970e8 + 73373a8 commit cff08c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
gzip -fd sns.gz
chmod +x sns

curl --fail -L "https://github.com/dfinity/sdk/releases/download/0.19.0/dfx-0.19.0-x86_64-${OS}.tar.gz" -o dfx.tar.gz
curl --fail -L "https://github.com/dfinity/sdk/releases/download/${DFX_VERSION}/dfx-${DFX_VERSION}-x86_64-${OS}.tar.gz" -o dfx.tar.gz
tar -xzf dfx.tar.gz
rm dfx.tar.gz
chmod +x dfx
Expand Down
1 change: 0 additions & 1 deletion run_basic_scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jq -r '.swap_canister_id' -e sns_canister_ids.json
[ "$(./get_sns_canisters.sh | ./bin/idl2json | jq -r '.dapps[0]')" == "$(./bin/dfx canister id test)" ] && echo "OK" || exit 1

# Upgrade test canister (I)
# TODO: Make sure the following commands work. Currently, we get "The replica returned a replica error: Replica Error: reject code CanisterError, reject message Canister be2us-64aaa-aaaaa-qaabq-cai violated contract: Error getting performance counter type 1, error code None"
./upgrade_test_canister.sh Hello
./wait_for_last_sns_proposal.sh
./wait_for_canister_running.sh "$(./bin/dfx canister id test)"
Expand Down
4 changes: 4 additions & 0 deletions settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ export NNS_DAPP_RELEASE="nightly-2023-10-30"
export IC_COMMIT="fda260e972c03a580be1119d6c2868e30171be02"

export TESTNET="local"

export DFX_VERSION="0.19.0"
export DFX_SNS_VERSION="0.4.0"
export DFX_NNS_VERSION="0.4.0"
4 changes: 2 additions & 2 deletions setup_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ then
fi

# TODO: look into installing these extensions locally so we can ensure we get a particular version
${DFX} extension install nns || true
${DFX} extension install sns || true
${DFX} extension install nns --version ${DFX_NNS_VERSION} || true
${DFX} extension install sns --version ${DFX_SNS_VERSION} || true

${DFX} nns import
${DFX} sns import
Expand Down

0 comments on commit cff08c0

Please sign in to comment.