Skip to content

Commit 83a155e

Browse files
author
Søren Schwartz
authored
Updated gRPC port
1 parent 13dd982 commit 83a155e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/mainnet/smart-contracts/tutorials/smartContractUpgrade/smartContractUpgrade.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur
174174

175175
.. code-block:: console
176176
177-
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
177+
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
178178
179179
.. image:: ./images/deploy_contract_version1.png
180180
:alt: Deploy contract version 1
@@ -193,13 +193,13 @@ Initialize a ``contract-version1`` smart contract instance with the command:
193193

194194
.. code-block:: console
195195
196-
$concordium-client contract init <ModuleReference> --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
196+
$concordium-client contract init <ModuleReference> --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
197197
198198
For example, when using the module reference from the image above, the command will look as follows:
199199

200200
.. code-block:: console
201201
202-
$concordium-client contract init 8fc09d2519f516cfbb3d139b1e567753780fbb52854ecbf9a12c447756d18eb0 --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
202+
$concordium-client contract init 8fc09d2519f516cfbb3d139b1e567753780fbb52854ecbf9a12c447756d18eb0 --contract smart_contract_upgrade --energy 30000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
203203
204204
.. image:: ./images/initialize_contract.png
205205
:alt: Initialize contract version 1
@@ -211,13 +211,13 @@ Before upgrading the ``contract-version1``, you can check its state with the vie
211211

212212
.. code-block:: console
213213
214-
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com
214+
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com
215215
216216
For example, when using the smart contract index from the image above, the command will look as follows:
217217

218218
.. code-block:: console
219219
220-
$concordium-client contract invoke 4462 --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com
220+
$concordium-client contract invoke 4462 --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com
221221
222222
You should see the following output.
223223

@@ -247,7 +247,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur
247247

248248
.. code-block:: console
249249
250-
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
250+
$concordium-client module deploy ./smart_contract_upgrade.wasm.v1 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
251251
252252
.. image:: ./images/deploy_contract_version2.png
253253
:alt: Deploy contract version 2
@@ -299,13 +299,13 @@ Upgrade the smart contract as follows:
299299

300300
.. code-block:: console
301301
302-
$concordium-client contract update <YourContractVersion1Index> --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
302+
$concordium-client contract update <YourContractVersion1Index> --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
303303
304304
For example, when using the smart contract index from the image above, the command will look as follows:
305305

306306
.. code-block:: console
307307
308-
$concordium-client contract update 4462 --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 10000 --grpc-ip node.testnet.concordium.com
308+
$concordium-client contract update 4462 --entrypoint upgrade --parameter-json upgrade.json --energy 5000 --sender <YourAccountAddress> --grpc-port 20000 --grpc-ip node.testnet.concordium.com
309309
310310
You should see the following output.
311311

@@ -317,7 +317,7 @@ You can check that the state migration was successful by inspecting the state wi
317317

318318
.. code-block:: console
319319
320-
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 10000 --grpc-ip node.testnet.concordium.com
320+
$concordium-client contract invoke <YourContractVersion1Index> --entrypoint view --grpc-port 20000 --grpc-ip node.testnet.concordium.com
321321
322322
.. image:: ./images/view_contract_version2.png
323323
:alt: View contract version 2

0 commit comments

Comments
 (0)