Skip to content

Commit 206ca4b

Browse files
committed
update deps and ts test
1 parent 84fd0a8 commit 206ca4b

14 files changed

Lines changed: 596 additions & 1908 deletions

File tree

account-comparison/Cargo.lock

Lines changed: 175 additions & 521 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

account-comparison/programs/account-comparison/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ idl-build = ["anchor-lang/idl-build"]
1919

2020
[dependencies]
2121
anchor-lang = "0.31.1"
22-
light-hasher = { version = "4.0", features = ["solana"] }
23-
light-sdk = { version = "0.15.0", features = ["anchor"] }
24-
light-sdk-types = { version = "0.15.0", features = ["anchor"] }
22+
light-hasher = { git = "https://github.com/Lightprotocol/light-protocol", rev = "214bcc42799bb3e685a5e036637d257f8d4551a2", features = ["solana"] }
23+
light-sdk = { git = "https://github.com/Lightprotocol/light-protocol", rev = "214bcc42799bb3e685a5e036637d257f8d4551a2", features = ["anchor"] }
24+
light-sdk-types = { git = "https://github.com/Lightprotocol/light-protocol", rev = "214bcc42799bb3e685a5e036637d257f8d4551a2", features = ["anchor"] }
2525

2626
[dev-dependencies]
27-
light-client = "0.15.0"
27+
light-client = { git = "https://github.com/Lightprotocol/light-protocol", rev = "214bcc42799bb3e685a5e036637d257f8d4551a2" }
2828
litesvm = "0.7.1"
2929
solana-keypair = "2.2"
3030
solana-message = "2.2"
3131
solana-pubkey = { version = "2.2", features = ["curve25519", "sha2"] }
3232
solana-signer = "2.2"
3333
solana-transaction = "2.2"
34-
light-program-test = "0.15.0"
34+
light-program-test = { git = "https://github.com/Lightprotocol/light-protocol", rev = "214bcc42799bb3e685a5e036637d257f8d4551a2" }
3535
tokio = "1.43.0"
3636
solana-sdk = "2.2"
3737

account-comparison/programs/account-comparison/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub mod account_comparison {
7171
// is hashed with poseidon hashes, serialized with borsh
7272
// and created with invoke_light_system_program by invoking the light-system-program.
7373
// The hashing scheme is the account structure derived with LightHasher.
74-
let mut compressed_account = LightAccount::<'_, CompressedAccountData>::new_init(
74+
let mut compressed_account = LightAccount::<CompressedAccountData>::new_init(
7575
&crate::ID,
7676
Some(address),
7777
output_tree_index,
@@ -99,7 +99,7 @@ pub mod account_comparison {
9999
proof: ValidityProof,
100100
account_meta: CompressedAccountMeta,
101101
) -> Result<()> {
102-
let mut compressed_account = LightAccount::<'_, CompressedAccountData>::new_mut(
102+
let mut compressed_account = LightAccount::<CompressedAccountData>::new_mut(
103103
&crate::ID,
104104
&account_meta,
105105
CompressedAccountData {

0 commit comments

Comments
 (0)