Skip to content

Commit

Permalink
Apply changes from 4.0 docs to 5.0 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Jan 18, 2024
1 parent b3d7e9b commit d57026f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/getting-started/calling.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ hide_title: true

<img src="/img/title/frontend.svg" className="titlePic" />

# Call Your Contract

Now that your contract has been fully deployed, we can start interacting with it! Flipper only has
two functions: `flip()` and `get()`. We will show you what it's like to play with both of them.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ There are two options when it comes to verification:
`cargo contract verify` allows you to verify the given cargo project
against a reference contract bundle.

Simply run `cargo contract verify --contract <path>`
Simply run `cargo contract verify <path>`
in the cargo project directory.

If the reference contract was not build inside a docker container, the command
Expand Down Expand Up @@ -114,7 +114,7 @@ If you are building a multi-contract project,
make sure you are executing the build in the parent directory in order to mount the directory
of all contracts to be visible. Specify a relative manifest path to the root contract:

`cargo contract build --verifiable --release --manifest-path ink-project-a/Cargo.toml`
`cargo contract build --verifiable --manifest-path ink-project-a/Cargo.toml`
:::

You can find a Dockefile and further documentation on image usage
Expand Down
6 changes: 4 additions & 2 deletions versioned_docs/version-5.x/getting-started/calling.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ cargo contract upload --suri //Alice
cargo contract instantiate --execute --suri //Alice --args true
# The output of this command will contain the contract address,
# insert it in the command below.
# e.g Contract 5DXR2MxThkyZvG3s4ubu9yRdNiifchZ9eNV8i6ErGx6u1sea

cargo contract call --contract ... --message get --suri //Alice

cargo contract call --contract <insert-contract-address> --message get --suri //Alice
```

### 2. `flip()` function

```bash
cargo contract call --contract ... --message flip --execute --suri //Alice
cargo contract call --contract <insert-contract-address> --message flip --execute --suri //Alice
```

0 comments on commit d57026f

Please sign in to comment.