Skip to content

Commit

Permalink
Release 0.5.0 (#125)
Browse files Browse the repository at this point in the history
* Release 0.4.1

* Fix lints

* Bump Rust and LiteSVM version

* Fix changelog
  • Loading branch information
Aursen authored Jan 24, 2025
1 parent cb0a442 commit 33d9062
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.6/install)"
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.10/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build test programs
Expand Down
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

## [Unreleased]

## [0.5.0] - 2025-01-23

### Added

- Add PartialEq for some types ([#126](https://github.com/LiteSVM/litesvm/pull/126)).

### Changed

- Make the LiteSVM struct thread-safe ([#127](https://github.com/LiteSVM/litesvm/pull/127)).

### Fixed

- Fix Solana dependencies ([#119](https://github.com/LiteSVM/litesvm/pull/119)).

## [0.4.0] - 2024-12-30

### Changed
Expand Down Expand Up @@ -61,7 +75,8 @@

- Initial release.

[Unreleased]: https://github.com/LiteSVM/litesvm/compare/v0.4.0...HEAD
[Unreleased]: https://github.com/LiteSVM/litesvm/compare/v0.5.0...HEAD
[0.5.0]: https://github.com/LiteSVM/litesvm/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/LiteSVM/litesvm/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/LiteSVM/litesvm/compare/v0.2.1...v0.3.0
[0.2.1]: https://github.com/LiteSVM/litesvm/compare/v0.2.0...v0.2.1
Expand Down
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["crates/*"]
exclude = ["node-litesvm/tests/clock-example"]

[workspace.package]
version = "0.4.0"
version = "0.5.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/LiteSVM/litesvm"
Expand All @@ -17,7 +17,7 @@ ed25519-dalek = "1.0.1"
indexmap = "2.6"
itertools = "0.14"
libsecp256k1 = "0.6.0"
litesvm = { path = "crates/litesvm", version = "0.4" }
litesvm = { path = "crates/litesvm", version = "0.5" }
log = "0.4"
napi = { version = "2.12.2", default-features = false }
qualifier_attr = "0.2.2"
Expand Down
2 changes: 1 addition & 1 deletion crates/litesvm/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl AccountsDb {
// need to add programdata accounts first if there are any
itertools::partition(&mut accounts, |x| {
x.1.owner() == &bpf_loader_upgradeable::id()
&& x.1.data().first().map_or(false, |byte| *byte == 3)
&& x.1.data().first().is_some_and(|byte| *byte == 3)
});
for (pubkey, acc) in accounts {
self.add_account(pubkey, acc)?;
Expand Down
2 changes: 1 addition & 1 deletion crates/litesvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ impl LiteSVM {
.and_then(|nonce_account| {
nonce_account::verify_nonce_account(&nonce_account, message.recent_blockhash())
})
.map_or(false, |nonce_data| {
.is_some_and(|nonce_data| {
message
.get_ix_signers(NONCED_TX_MARKER_IX_INDEX as usize)
.any(|signer| signer == &nonce_data.authority)
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.79.0"
channel = "1.81.0"
components = ["rustfmt", "clippy"]

0 comments on commit 33d9062

Please sign in to comment.