Skip to content

refactor deposit_and_call and deposit_spl_token_and_call #61

refactor deposit_and_call and deposit_spl_token_and_call

refactor deposit_and_call and deposit_spl_token_and_call #61

Triggered via pull request October 2, 2024 19:16
Status Cancelled
Total duration 1m 21s
Artifacts

test.yml

on: pull_request
Matrix: os-check
Matrix: required
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
[clippy] programs/protocol-contracts-solana/src/lib.rs#L165: programs/protocol-contracts-solana/src/lib.rs#L165
error[E0308]: mismatched types --> programs/protocol-contracts-solana/src/lib.rs:165:10 | 160 | pub fn deposit_spl_token_and_call( | -------------------------- implicitly returns `()` as its body has no tail or `return` expression ... 165 | ) -> Result<()> { | ^^^^^^^^^^ expected `Result<(), Error>`, found `()` ... 168 | Ok(()); | - help: remove this semicolon to return this value | = note: expected enum `std::result::Result<(), anchor_lang::error::Error>` found unit type `()`
beta
Canceling since a higher priority waiting request for 'test-deposit-spl-and-call' exists
beta
The operation was canceled.
stable
Canceling since a higher priority waiting request for 'test-deposit-spl-and-call' exists
stable
The operation was canceled.
macos-latest / stable
Canceling since a higher priority waiting request for 'test-deposit-spl-and-call' exists
macos-latest / stable
The operation was canceled.
[clippy] programs/protocol-contracts-solana/src/lib.rs#L127: programs/protocol-contracts-solana/src/lib.rs#L127
warning: unused variable: `receiver` --> programs/protocol-contracts-solana/src/lib.rs:127:9 | 127 | receiver: [u8; 20], // unused in this program; for directing zetachain protocol only | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` | = note: `#[warn(unused_variables)]` on by default