Skip to content

Commit

Permalink
update contract call
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki authored Nov 16, 2023
1 parent c98c8bd commit f9735ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started/calling.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ Calling a contract can also be done via the command-line!
cargo contract build
cargo contract upload --suri //Alice

cargo contract instantiate --suri //Alice --args true
cargo contract instantiate --execute --suri //Alice --args true
# The output of this command will contain the contract address,
# insert it in the command below.

cargo contract call --contract ... --message get --dry-run --suri //Alice
cargo contract call --contract ... --message get --suri //Alice
```

### 2. `flip()` function

```bash
cargo contract call --contract ... --message flip --suri //Alice
cargo contract call --contract ... --message flip --execute --suri //Alice
```

0 comments on commit f9735ab

Please sign in to comment.