Skip to content

Commit

Permalink
Fix "uprgadable" typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed Sep 29, 2023
1 parent c461e8f commit 1999e04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/interact-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Here we declare two CLI commands, `deploy` and `upgrade` to easily manage our co

1. In the `deploy` command, we first call `loadWallet` to get a new instance of `Wallet`, which represents a wallet on the MultiversX blockchain. When calling this function, we will be prompted for the keystore file's password.

Then we will deploy the contract code that comes from the `data.json` file's `code` key calling `wallet.deployContract()` function. Here we also pass the `codeMetadata` and make the contract `upgradable`, specify the `gasLimit` and any `codeArgs` which will be encoded using the `e` utility.
Then we will deploy the contract code that comes from the `data.json` file's `code` key calling `wallet.deployContract()` function. Here we also pass the `codeMetadata` and make the contract `upgradeable`, specify the `gasLimit` and any `codeArgs` which will be encoded using the `e` utility.

2. The `upgrade` is very similar to the `deploy` command. Here we use the `envChain.select()` function to get the correct address of our contract from the `data.json` file depending on the environment (devnet, testnet, mainnet) the command runs on (which comes from the `CHAIN` environmental variable).

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/test-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Sometimes it is hard to arrive to a specific state of your smart contract, maybe
await contract.setAccount({
...(await contract.getAccount()),
owner: deployer,
codeMetadata: ["upgradable", "payable"],
codeMetadata: ["upgradeable", "payable"],
kvs: [
// Manually setting storage keys
e.kvs.Mapper("mock_address").Value(e.Addr(mockAddress)),
Expand Down

0 comments on commit 1999e04

Please sign in to comment.