Skip to content

Commit

Permalink
Updated gRPC port
Browse files Browse the repository at this point in the history
  • Loading branch information
Søren Schwartz authored Sep 18, 2023
1 parent 13dd982 commit 83a155e
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
.. image:: ./images/deploy_contract_version1.png
:alt: Deploy contract version 1
Expand All @@ -193,13 +193,13 @@ Initialize a ``contract-version1`` smart contract instance with the command:

.. code-block:: console
$concordium-client contract init <ModuleReference> --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract init <ModuleReference> --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --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 <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract init 8fc09d2519f516cfbb3d139b1e567753780fbb52854ecbf9a12c447756d18eb0 --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
.. image:: ./images/initialize_contract.png
:alt: Initialize contract version 1
Expand All @@ -211,13 +211,13 @@ Before upgrading the ``contract-version1``, you can check its state with the vie

.. code-block:: console
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract invoke <YourContractVersion1Index> --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.

Expand Down Expand Up @@ -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 <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
.. image:: ./images/deploy_contract_version2.png
:alt: Deploy contract version 2
Expand Down Expand Up @@ -299,13 +299,13 @@ Upgrade the smart contract as follows:

.. code-block:: console
$concordium-client contract update <YourContractVersion1Index> --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract update <YourContractVersion1Index> --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --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 <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract update 4462 --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
You should see the following output.

Expand All @@ -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 <YourContractVersion1Index> --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com
.. image:: ./images/view_contract_version2.png
:alt: View contract version 2
Expand Down

0 comments on commit 83a155e

Please sign in to comment.