diff --git a/stellar/README.md b/stellar/README.md index 387512e2d..957bb12d0 100644 --- a/stellar/README.md +++ b/stellar/README.md @@ -100,7 +100,7 @@ node stellar/deploy-contract.js deploy interchain_token_service --version v1.0.0 Note that example contract should use `--wasm-path` option to deploy contract ```bash -node stellar/deploy-contract.js deploy example --chain-name --wasm-path ../axelar-cgp-stellar/target/wasm32-unknown-unknown/release/stellar_example.optimized.wasm +node stellar/deploy-contract.js deploy example --wasm-path ../axelar-cgp-stellar/target/wasm32-unknown-unknown/release/stellar_example.optimized.wasm ``` ### Contract upgrades @@ -114,7 +114,7 @@ node stellar/deploy-contract.js deploy upgrader --version v1.0.0 After the `upgrader` is deployed, any other instantiated contract can be upgraded by calling the `upgrade` function ```bash -node stellar/deploy-contract.js upgrade --chain-name --wasm-path ../axelar-cgp-stellar/target/wasm32-unknown-unknown/release/.optimized.wasm --new-version --migration-data +node stellar/deploy-contract.js upgrade --wasm-path ../axelar-cgp-stellar/target/wasm32-unknown-unknown/release/.optimized.wasm --new-version --migration-data ``` where `` is the name of the contract to be upgraded and `--wasm-path` points to the upgraded bytecode. As a sanity check, `` must match the version number defined by the provided bytecode, so upgrading to the wrong version can be prevented. `` is the json encoded data that will be passed to the contract's `migrate` function. If the flag is not provided, the default value `()` will be used, meaning that the migration data is of type `void`. The easiest way to generate the json data for complex types is to instantiate the rust type the contract expects and then use `serde_json::to_string` to convert it to json.