Skip to content

solana-ibc: use solana height and timestamp for cf-guest host metadata #1781

solana-ibc: use solana height and timestamp for cf-guest host metadata

solana-ibc: use solana height and timestamp for cf-guest host metadata #1781

Triggered via pull request October 16, 2024 16:09
Status Failure
Total duration 19m 42s
Artifacts

master.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
unreachable statement: solana/solana-ibc/programs/solana-ibc/src/validation_context.rs#L87
error: unreachable statement --> solana/solana-ibc/programs/solana-ibc/src/validation_context.rs:87:9 | 79 | / return ibc::Timestamp::from_nanoseconds( 80 | | timestamp_sec * 10u64.pow(9), 81 | | ) 82 | | .map_err(|e| { 83 | | ibc::ClientError::ClientSpecific { description: e.to_string() } 84 | | .into() 85 | | }); | |______________- any code following this expression is unreachable 86 | } 87 | let timestamp = self.borrow().chain.head()?.timestamp_ns.get(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
unreachable statement: solana/solana-ibc/programs/solana-ibc/src/validation_context.rs#L64
error: unreachable statement --> solana/solana-ibc/programs/solana-ibc/src/validation_context.rs:64:9 | 62 | return Ok(height); | ----------------- any code following this expression is unreachable 63 | } 64 | let height = u64::from(self.borrow().chain.head()?.block_height); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | = note: `-D unreachable-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unreachable_code)]`
Miscellaneous checks
Clippy had exited with the 101 exit code
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/