Skip to content

Commit bc23d83

Browse files
committed
fix tests add sdk compressed account poseidon import
1 parent 97fb063 commit bc23d83

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cargo test -p aligned-sized
4949
cargo test -p light-hasher --all-features
5050
cargo test -p light-compressed-account --all-features
51-
cargo test -p light-compressed-account --features new-unique
51+
cargo test -p light-compressed-account --features new-unique,poseidon
5252
cargo test -p light-account-checks --all-features
5353
cargo test -p light-verifier --all-features
5454
cargo test -p light-merkle-tree-metadata --all-features

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ impl ZCompressedAccount<'_> {
390390
}
391391
}
392392

393-
#[cfg(not(feature = "pinocchio"))]
394-
#[cfg(test)]
393+
#[cfg(all(not(feature = "pinocchio"), test, feature = "poseidon"))]
395394
mod tests {
396395
use light_hasher::Poseidon;
397396
use light_zero_copy::traits::ZeroCopyAt;

sdk-libs/sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ anchor = [
2121
v2 = ["light-sdk-types/v2"]
2222
cpi-context = ["light-sdk-types/cpi-context"]
2323
devnet = []
24-
poseidon = ["light-hasher/poseidon"]
24+
poseidon = ["light-hasher/poseidon", "light-compressed-account/poseidon"]
2525

2626

2727
[dependencies]

0 commit comments

Comments
 (0)