Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

A few tweaks to quick start guide to make it work #54

Merged
merged 3 commits into from
Jul 30, 2022

Conversation

accordeiro
Copy link
Contributor

Just went over this guide end to end with a clean rust install, these are the issues I identified along the way – hope this is helpful.

@@ -13,7 +13,7 @@ first Soroban contract.
Start by creating a new Rust library using the `cargo new` command.

```sh
cargo new --lib [project-name]
cargo new --lib first-project
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This originally said [project-name] but later on in the config the project is referenced as "first-project" .

It's not a big deal but it took me a minute to realize I had to find and replace all first-project instances with the name I came up with for my test project.

If we make this change the whole page can be followed as a tutorial. I think anyone can figure this name can be replaced with whatever they want.

Install the `wasm32-unknown-unknown` target on your machine:

```sh
rustup target add wasm32-unknown-unknown
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this step in the Setup page? I think we should make it part of the setup, rather than this step.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 465508b and 03f81aa

Comment on lines +158 to +160
--wasm target/wasm32-unknown-unknown/release/first-project.wasm \
--id 1 \
--fn hello \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Thank you!

@leighmcculloch leighmcculloch merged commit 300ad12 into main Jul 30, 2022
@leighmcculloch leighmcculloch deleted the accordeiro-patch-1 branch July 30, 2022 00:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants