feat: withdraw and call spl #124
semantic-pr.yml
on: pull_request_target
Validate PR title
2s
Annotations
28 warnings
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `program` crate for guidance on how handle this unexpected cfg
= help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L65:
programs/connectedSPL/src/lib.rs#L65
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:65:10
|
65 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L76:
programs/connectedSPL/src/lib.rs#L76
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:76:10
|
76 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/gateway/src/lib.rs#L938:
programs/gateway/src/lib.rs#L938
warning: this `else { if .. }` block can be collapsed
--> programs/gateway/src/lib.rs:938:16
|
938 | } else {
| ________________^
939 | | if account_info.is_writable {
940 | | account_metas.push(AccountMeta::new(*account_key, false));
941 | | } else {
... |
944 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
938 ~ } else if account_info.is_writable {
939 + account_metas.push(AccountMeta::new(*account_key, false));
940 + } else {
941 + account_metas.push(AccountMeta::new_readonly(*account_key, false));
942 + }
|
|
[clippy] programs/gateway/src/lib.rs#L983:
programs/gateway/src/lib.rs#L983
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:983:10
|
983 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/gateway/src/lib.rs#L1096:
programs/gateway/src/lib.rs#L1096
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:1096:10
|
1096 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L12:
programs/connectedSPL/src/lib.rs#L12
warning: unused variable: `ctx`
--> programs/connectedSPL/src/lib.rs:12:23
|
12 | pub fn initialize(ctx: Context<Initialize>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
[clippy] programs/gateway/src/lib.rs#L264:
programs/gateway/src/lib.rs#L264
warning: this function has too many arguments (9/7)
--> programs/gateway/src/lib.rs:264:5
|
264 | / pub fn execute_spl_token(
265 | | ctx: Context<ExecuteSPLToken>,
266 | | decimals: u8,
267 | | amount: u64,
... |
273 | | nonce: u64,
274 | | ) -> Result<()> {
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L8:
programs/connectedSPL/src/lib.rs#L8
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:8:1
|
8 | #[program]
| ^^^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L65:
programs/connectedSPL/src/lib.rs#L65
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:65:10
|
65 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L76:
programs/connectedSPL/src/lib.rs#L76
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/connectedSPL/src/lib.rs:76:10
|
76 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/gateway/src/lib.rs#L938:
programs/gateway/src/lib.rs#L938
warning: this `else { if .. }` block can be collapsed
--> programs/gateway/src/lib.rs:938:16
|
938 | } else {
| ________________^
939 | | if account_info.is_writable {
940 | | account_metas.push(AccountMeta::new(*account_key, false));
941 | | } else {
942 | | account_metas.push(AccountMeta::new_readonly(*account_key, false));
943 | | }
944 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
938 ~ } else if account_info.is_writable {
939 + account_metas.push(AccountMeta::new(*account_key, false));
940 + } else {
941 + account_metas.push(AccountMeta::new_readonly(*account_key, false));
942 + }
|
|
[clippy] programs/gateway/src/lib.rs#L983:
programs/gateway/src/lib.rs#L983
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:983:10
|
983 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/gateway/src/lib.rs#L1096:
programs/gateway/src/lib.rs#L1096
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:1096:10
|
1096 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= help: consider adding `anchor-debug` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
|
[clippy] programs/connectedSPL/src/lib.rs#L12:
programs/connectedSPL/src/lib.rs#L12
warning: unused variable: `ctx`
--> programs/connectedSPL/src/lib.rs:12:23
|
12 | pub fn initialize(ctx: Context<Initialize>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
[clippy] programs/gateway/src/lib.rs#L264:
programs/gateway/src/lib.rs#L264
warning: this function has too many arguments (9/7)
--> programs/gateway/src/lib.rs:264:5
|
264 | / pub fn execute_spl_token(
265 | | ctx: Context<ExecuteSPLToken>,
266 | | decimals: u8,
267 | | amount: u64,
... |
273 | | nonce: u64,
274 | | ) -> Result<()> {
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|