@@ -174,7 +174,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur
174
174
175
175
.. code-block :: console
176
176
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
178
178
179
179
.. image :: ./images/deploy_contract_version1.png
180
180
:alt: Deploy contract version 1
@@ -193,13 +193,13 @@ Initialize a ``contract-version1`` smart contract instance with the command:
193
193
194
194
.. code-block :: console
195
195
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
197
197
198
198
For example, when using the module reference from the image above, the command will look as follows:
199
199
200
200
.. code-block :: console
201
201
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
203
203
204
204
.. image :: ./images/initialize_contract.png
205
205
:alt: Initialize contract version 1
@@ -211,13 +211,13 @@ Before upgrading the ``contract-version1``, you can check its state with the vie
211
211
212
212
.. code-block :: console
213
213
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
215
215
216
216
For example, when using the smart contract index from the image above, the command will look as follows:
217
217
218
218
.. code-block :: console
219
219
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
221
221
222
222
You should see the following output.
223
223
@@ -247,7 +247,7 @@ This command will create the ``smart_contract_upgrade.wasm.v1`` file in your cur
247
247
248
248
.. code-block :: console
249
249
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
251
251
252
252
.. image :: ./images/deploy_contract_version2.png
253
253
:alt: Deploy contract version 2
@@ -299,13 +299,13 @@ Upgrade the smart contract as follows:
299
299
300
300
.. code-block :: console
301
301
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
303
303
304
304
For example, when using the smart contract index from the image above, the command will look as follows:
305
305
306
306
.. code-block :: console
307
307
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
309
309
310
310
You should see the following output.
311
311
@@ -317,7 +317,7 @@ You can check that the state migration was successful by inspecting the state wi
317
317
318
318
.. code-block :: console
319
319
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
321
321
322
322
.. image :: ./images/view_contract_version2.png
323
323
:alt: View contract version 2
0 commit comments