diff --git a/docs/getting-started/calling.md b/docs/getting-started/calling.md index 24d62dc6c9..7ca8cc20e5 100644 --- a/docs/getting-started/calling.md +++ b/docs/getting-started/calling.md @@ -6,6 +6,8 @@ hide_title: true +# 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. diff --git a/versioned_docs/version-5.x/basics/verification/contract-verification.md b/versioned_docs/version-5.x/basics/verification/contract-verification.md index e48c9bd262..779e95cc54 100644 --- a/versioned_docs/version-5.x/basics/verification/contract-verification.md +++ b/versioned_docs/version-5.x/basics/verification/contract-verification.md @@ -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 ` +Simply run `cargo contract verify ` in the cargo project directory. If the reference contract was not build inside a docker container, the command @@ -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 diff --git a/versioned_docs/version-5.x/getting-started/calling.md b/versioned_docs/version-5.x/getting-started/calling.md index 4cd2425d47..7ca8cc20e5 100644 --- a/versioned_docs/version-5.x/getting-started/calling.md +++ b/versioned_docs/version-5.x/getting-started/calling.md @@ -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 --message get --suri //Alice ``` ### 2. `flip()` function ```bash -cargo contract call --contract ... --message flip --execute --suri //Alice +cargo contract call --contract --message flip --execute --suri //Alice ```