Skip to content

solana-ibc: add support for witness account #1775

solana-ibc: add support for witness account

solana-ibc: add support for witness account #1775

Triggered via pull request October 16, 2024 13:08
@mina86mina86
synchronize #388
mpn/f
Status Failure
Total duration 18m 55s
Artifacts

master.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
no method named `with_witness_account` found for struct `solana_trie::TrieAccount<solana_trie::ResizableAccount<'_, '_>>` in the current scope: solana/solana-ibc/programs/solana-ibc/src/storage.rs#L445
error[E0599]: no method named `with_witness_account` found for struct `solana_trie::TrieAccount<solana_trie::ResizableAccount<'_, '_>>` in the current scope --> solana/solana-ibc/programs/solana-ibc/src/storage.rs:445:14 | 444 | trie = trie | ________________- 445 | | .with_witness_account(witness, &crate::ID) | | -^^^^^^^^^^^^^^^^^^^^ method not found in `TrieAccount<ResizableAccount<'_, '_>>` | |_____________| | | = note: the method was found for - `solana_trie::TrieAccount<D, std::option::Option<std::cell::RefMut<'a, solana_trie::witness::Data>>>`
unreachable statement: solana/solana-ibc/programs/solana-ibc/src/client_state.rs#L258
error: unreachable statement --> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:258:9 | 256 | return Ok((timestamp, height)); | ------------------------------ any code following this expression is unreachable 257 | } 258 | let timestamp = self.borrow().chain.head()?.timestamp_ns.get(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | = note: `-D unreachable-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unreachable_code)]`
no function or associated item named `get` found for struct `anchor_lang::prelude::Clock` in the current scope: solana/solana-ibc/programs/solana-ibc/src/client_state.rs#L242
error[E0599]: no function or associated item named `get` found for struct `anchor_lang::prelude::Clock` in the current scope --> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:242:68 | 242 | anchor_lang::solana_program::sysvar::clock::Clock::get() | ^^^ function or associated item not found in `Clock` | = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 1 + use anchor_lang::prelude::SolanaSysvar; |
Miscellaneous checks
Clippy had exited with the 101 exit code
Rust tests
Process completed with exit code 101.
Anchor Test
Process completed with exit code 1.
Miscellaneous checks
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Miscellaneous checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/