Skip to content

Commit

Permalink
transfer-lamports: Update zig version for reduced CUs (#20)
Browse files Browse the repository at this point in the history
#### Problem

Version 0.15.1 of the Zig SDK optimizes the program entrypoint, but the
transfer-lamports zig program is still on an older version.

#### Summary of changes

Update the SDK to 0.15.1 and update the CU usage number.
  • Loading branch information
joncinque authored Nov 18, 2024
1 parent 8bab91a commit d73dcbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ a little-endian u64 in instruction data.
| Language | CU Usage |
| --- | --- |
| Rust | 459 |
| Zig | 44 |
| Zig | 38 |
| C | 104 |
| Assembly | 30 |
| Rust (pinocchio) | 32 |
Expand Down
4 changes: 2 additions & 2 deletions transfer-lamports/zig/build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// internet connectivity.
.dependencies = .{
.@"solana-program-sdk" = .{
.url = "https://github.com/joncinque/solana-program-sdk-zig/archive/refs/tags/v0.14.0.tar.gz",
.hash = "1220bdfa4ea1ab6330959ce4bc40feb5b39a7f98923a266a94b69e27fd20c3526786",
.url = "https://github.com/joncinque/solana-program-sdk-zig/archive/refs/tags/v0.15.1.tar.gz",
.hash = "12203631b9eba91c479991ec8f0525f181addb5879bbb96e256427f802c2ca67e108",
},
},
.paths = .{
Expand Down

0 comments on commit d73dcbb

Please sign in to comment.