Skip to content

Commit 00f3ced

Browse files
committed
fix test
1 parent 18b5af2 commit 00f3ced

File tree

8 files changed

+8
-5
lines changed

8 files changed

+8
-5
lines changed

.github/workflows/rust.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ jobs:
5050
cargo test -p light-array-map --all-features
5151
cargo test -p light-hasher --all-features
5252
cargo test -p light-compressed-account --all-features
53-
cargo test -p light-compressed-account --features new-unique,poseidon
5453
cargo test -p light-account-checks --all-features
5554
cargo test -p light-verifier --all-features
5655
cargo test -p light-merkle-tree-metadata --all-features
5756
cargo test -p light-zero-copy --features "std, mut, derive"
58-
cargo test -p light-zero-copy --no-default-features # Test no_std compatibility
59-
cargo build -p light-zero-copy --no-default-features # Ensure no_std builds
6057
cargo test -p light-zero-copy-derive --all-features
6158
cargo test -p zero-copy-derive-test
6259
cargo test -p light-hash-set --all-features

program-libs/batched-merkle-tree/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ rand = { workspace = true }
5858
light-merkle-tree-reference = { workspace = true }
5959
light-account-checks = { workspace = true, features = ["test-only"] }
6060
light-compressed-account = { workspace = true, features = ["new-unique"] }
61+
light-hasher = { workspace = true, features = ["keccak"] }
6162

6263
[lints.rust.unexpected_cfgs]
6364
level = "allow"

program-libs/compressed-account/src/compressed_account.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ impl ZCompressedAccount<'_> {
379379

380380
#[cfg(all(not(feature = "pinocchio"), test, feature = "poseidon"))]
381381
mod tests {
382-
use light_hasher::Poseidon;
382+
use borsh::BorshSerialize;
383+
use light_hasher::{hash_to_field_size::hash_to_bn254_field_size_be, Poseidon};
383384
use light_zero_copy::traits::ZeroCopyAt;
384385
use num_bigint::BigUint;
385386
use rand::Rng;

program-libs/concurrent-merkle-tree/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ark-bn254 = { workspace = true }
2525
ark-ff = { workspace = true }
2626
light-merkle-tree-reference = { workspace = true }
2727
light-hash-set = { workspace = true }
28+
light-hasher = { workspace = true, features = ["keccak", "sha256", "poseidon"] }
2829
rand = { workspace = true }
2930
# spl-concurrent-merkle-tree = { version = "0.2.0", default-features = false }
3031
tokio = { workspace = true }

program-libs/hash-set/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ light-hasher = { workspace = true }
1919
[dev-dependencies]
2020
ark-bn254 = { workspace = true }
2121
ark-ff = { workspace = true }
22+
light-hasher = { workspace = true, features = ["keccak", "sha256", "poseidon"] }
2223
rand = { workspace = true }

program-libs/indexed-array/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ num-traits = { workspace = true }
1313
thiserror = { workspace = true }
1414

1515
[dev-dependencies]
16+
light-hasher = { workspace = true, features = ["keccak", "sha256", "poseidon"] }
1617
rand = { workspace = true }
1718
num-bigint = { workspace = true, features = ["rand"] }

program-libs/indexed-merkle-tree/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ thiserror = { workspace = true }
3434

3535
[dev-dependencies]
3636
light-hash-set = { workspace = true }
37+
light-hasher = { workspace = true, features = ["keccak", "sha256", "poseidon"] }
3738
rand = { workspace = true }
3839
num-bigint = { workspace = true, features = ["rand"] }

program-libs/macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn derive_noop(_input: TokenStream) -> TokenStream {
6565
TokenStream::new()
6666
}
6767

68-
/// Derives a Light Protocol CPI signer PDA at runtime
68+
/// Derives a Light Protocol CPI signer PDA at compile time
6969
///
7070
/// This macro computes the CPI signer PDA using the "cpi_authority" seed
7171
/// for the given program ID. Uses `solana_pubkey` with `solana` feature,

0 commit comments

Comments
 (0)