Skip to content

Commit

Permalink
Fix usage of anchor's idl-build feature in account compression (#7318)
Browse files Browse the repository at this point in the history
fix idl-build
  • Loading branch information
ngundotra authored Oct 1, 2024
1 parent 03078f5 commit 3280249
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions account-compression/Cargo.lock

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

3 changes: 2 additions & 1 deletion account-compression/programs/account-compression/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build"]

[dependencies]
anchor-lang = { version = "0.29.0", features = ["idl-build"] }
anchor-lang = { version = "0.29.0" }
bytemuck = "1.13"
solana-program = ">=1.18.11,<=2"
spl-concurrent-merkle-tree = { version = "0.4.0", path = "../../../libraries/concurrent-merkle-tree" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl std::fmt::Display for CompressionAccountType {
}
}

#[cfg(feature = "idl-build")]
impl anchor_lang::IdlBuild for CompressionAccountType {}

/// Initialization parameters for an SPL ConcurrentMerkleTree.
Expand Down

0 comments on commit 3280249

Please sign in to comment.