Skip to content

Commit

Permalink
Update native_program_hello.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su committed Aug 29, 2023
1 parent 82057c4 commit 557cede
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ version = "0.1.0"
edition = "2021"

[dependencies]
solana-program = "~1.8.14"
solana-program = "1.16.10"

[lib]
crate-type = ["cdylib", "lib"]
```

:::caution
需要注意这里的`solana-program`的版本,不要直接`copy`这个`Cargo.toml`的配置,因为`solana-program`的版本也是在更新的,可能以后直接使用这里的会出问题。建议使用`cargo add solana-program`添加。
:::

## 2. 编写你的程序

接下来,使用下面的`Hello World!` 程序更新`lib.rs`。当程序被调用时,该程序会简单地将`Hello, world!` 打印到程序日志中。
Expand Down

0 comments on commit 557cede

Please sign in to comment.