Skip to content

Commit

Permalink
hyperspace: fix witness account change
Browse files Browse the repository at this point in the history
Previous change adding witness account to solana-ibc calls was
incomplete as it didn’t add the dependency.  I missed that the code
wasn’t actually compiling due to many warnings polluting the build.
This commit fixes all that.
  • Loading branch information
mina86 committed Oct 25, 2024
1 parent 8c2206d commit 2c319b6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
19 changes: 18 additions & 1 deletion 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 hyperspace/solana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ cf-solana-og = { git = "https://github.com/ComposableFi/emulated-light-client/",

#Contract
solana-ibc = { git = "https://github.com/ComposableFi/emulated-light-client/" ,features = ["no-entrypoint"]}
solana-write-account = { git = "https://github.com/ComposableFi/emulated-light-client/" ,features = ["library"] }
solana-write-account = { git = "https://github.com/ComposableFi/emulated-light-client/", features = ["library"] }
solana-witnessed-trie = { git = "https://github.com/ComposableFi/emulated-light-client/", default-features = false, features = ["api"] }
solana-signature-verifier = { git = "https://github.com/ComposableFi/emulated-light-client/" }

tracing = "0.1.36"
Expand Down
2 changes: 1 addition & 1 deletion hyperspace/solana/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl SolanaClient {
}

pub fn get_witness_key(&self, trie_key: &Pubkey) -> Pubkey {
solana_witnessed_trie::api::find_program_address(
wittrie::api::find_witness_account(
&self.solana_ibc_program_id,
trie_key,
).unwrap().0
Expand Down

0 comments on commit 2c319b6

Please sign in to comment.