Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First contract minor fixes #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ We also need a method to read the counter value, so our `Counter` methods implem

```rust
impl Counter {
pub fn read_value(&self) -> i64 {
pub fn read_value(&self) -> u32 {
self.value
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Make sure that you use version ``1.75.0-nightly`` of rustc. This can be achieved
```toml
// rust-toolchain.toml
[toolchain]
channel = "nightly-2023-11-10"
channel = "nightly-2023-11-10" # 1.75.0-nightly
targets = ["wasm32-unknown-unknown"]
components = ["rust-src", "rustfmt", "cargo", "clippy"]
```
Expand All @@ -54,7 +54,7 @@ rustup target add wasm32-unknown-unknown
You can pass a target flag to the cargo build command, to explicitly set the target you want to compile to. This command compiles the Rust project to WebAssembly in release mode, optimizing the output for performance.

```bash title="Terminal"
cargo build --target wasm32-unknown-unknown --release
cargo build --target wasm32-unknown-unknown --release -Znext-lockfile-bump
```

:::tip[Note]
Expand Down