From 83a155ed726e98735c0ddfdb53848edf8dada42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schwartz?= <132270889+schwartz-concordium@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:09:17 +0200 Subject: [PATCH] Updated gRPC port --- .../smartContractUpgrade.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/mainnet/smart-contracts/tutorials/smartContractUpgrade/smartContractUpgrade.rst b/source/mainnet/smart-contracts/tutorials/smartContractUpgrade/smartContractUpgrade.rst index 597f63cfc3..d95d79b80a 100644 --- a/source/mainnet/smart-contracts/tutorials/smartContractUpgrade/smartContractUpgrade.rst +++ b/source/mainnet/smart-contracts/tutorials/smartContractUpgrade/smartContractUpgrade.rst @@ -174,7 +174,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur .. code-block:: console - $concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com .. image:: ./images/deploy_contract_version1.png :alt: Deploy contract version 1 @@ -193,13 +193,13 @@ Initialize a ``contract-version1`` smart contract instance with the command: .. code-block:: console - $concordium-client contract init --contract smart_contract_upgrade --energy 30000 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract init --contract smart_contract_upgrade --energy 30000 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com For example, when using the module reference from the image above, the command will look as follows: .. code-block:: console - $concordium-client contract init 8fc09d2519f516cfbb3d139b1e567753780fbb52854ecbf9a12c447756d18eb0 --contract smart_contract_upgrade --energy 30000 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract init 8fc09d2519f516cfbb3d139b1e567753780fbb52854ecbf9a12c447756d18eb0 --contract smart_contract_upgrade --energy 30000 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com .. image:: ./images/initialize_contract.png :alt: Initialize contract version 1 @@ -211,13 +211,13 @@ Before upgrading the ``contract-version1``, you can check its state with the vie .. code-block:: console - $concordium-client contract invoke --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract invoke --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com For example, when using the smart contract index from the image above, the command will look as follows: .. code-block:: console - $concordium-client contract invoke 4462 --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract invoke 4462 --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com You should see the following output. @@ -247,7 +247,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur .. code-block:: console - $concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com .. image:: ./images/deploy_contract_version2.png :alt: Deploy contract version 2 @@ -299,13 +299,13 @@ Upgrade the smart contract as follows: .. code-block:: console - $concordium-client contract update --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract update --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com For example, when using the smart contract index from the image above, the command will look as follows: .. code-block:: console - $concordium-client contract update 4462 --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract update 4462 --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender --grpc-port 20000 --grpc-ip node.testnet.concordium.com You should see the following output. @@ -317,7 +317,7 @@ You can check that the state migration was successful by inspecting the state wi .. code-block:: console - $concordium-client contract invoke --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com + $concordium-client contract invoke --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com .. image:: ./images/view_contract_version2.png :alt: View contract version 2