From 03ea84a62c97a239b4f777d56569997346cd5239 Mon Sep 17 00:00:00 2001
From: "Engineering Rel @ Urani"
<162904807+urani-engineering@users.noreply.github.com>
Date: Wed, 27 Mar 2024 13:44:56 +0000
Subject: [PATCH] Clean up
---
demos/01_hello_world/README.md | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/demos/01_hello_world/README.md b/demos/01_hello_world/README.md
index 6713caed..d74918af 100644
--- a/demos/01_hello_world/README.md
+++ b/demos/01_hello_world/README.md
@@ -9,6 +9,7 @@
solana-test-validator
```
+
* Initialize a new Rust library via Cargo:
@@ -18,14 +19,19 @@ cd hello_world
cargo add solana-program
```
+
+
* This creates a very basic Solana Rust program following this layout:
```shell
--- src/
- |__ lib.rs
--- Cargo.toml
+.
+├── Cargo.toml
+└── src
+ └── lib.rs
```
+
+
* You should modify `Cargo.toml` to the following:
```
@@ -98,15 +104,18 @@ pub fn process_instruction(
cargo build-sbf
```
+
+
* This command will create the compiled program's `.so` file inside a folder called `./target/deploy`:
```
find . -name '*.so'
```
+
+
* Now, let's deploy it:
-
```
solana program deploy ./target/deploy/hello_world.so