token-2022: disable transfer_with_fee instruction constructor (#4084)
This commit is contained in:
parent
a4a9ae0b57
commit
312e5e190a
|
@ -5927,7 +5927,7 @@ dependencies = [
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"solana-program",
|
"solana-program",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -5940,7 +5940,7 @@ dependencies = [
|
||||||
"solana-sdk",
|
"solana-sdk",
|
||||||
"spl-associated-token-account 1.1.3",
|
"spl-associated-token-account 1.1.3",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -6296,7 +6296,7 @@ dependencies = [
|
||||||
"solana-vote-program",
|
"solana-vote-program",
|
||||||
"spl-math",
|
"spl-math",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"test-case",
|
"test-case",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
@ -6379,7 +6379,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spl-token-2022"
|
name = "spl-token-2022"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayref",
|
"arrayref",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
@ -6412,7 +6412,7 @@ dependencies = [
|
||||||
"spl-associated-token-account 1.1.3",
|
"spl-associated-token-account 1.1.3",
|
||||||
"spl-instruction-padding",
|
"spl-instruction-padding",
|
||||||
"spl-memo 3.0.1",
|
"spl-memo 3.0.1",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"spl-token-client",
|
"spl-token-client",
|
||||||
"walkdir",
|
"walkdir",
|
||||||
]
|
]
|
||||||
|
@ -6442,7 +6442,7 @@ dependencies = [
|
||||||
"spl-associated-token-account 1.1.3",
|
"spl-associated-token-account 1.1.3",
|
||||||
"spl-memo 3.0.1",
|
"spl-memo 3.0.1",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"spl-token-client",
|
"spl-token-client",
|
||||||
"strum",
|
"strum",
|
||||||
"strum_macros",
|
"strum_macros",
|
||||||
|
@ -6453,7 +6453,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spl-token-client"
|
name = "spl-token-client"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"solana-cli-output",
|
"solana-cli-output",
|
||||||
|
@ -6463,7 +6463,7 @@ dependencies = [
|
||||||
"spl-associated-token-account 1.1.3",
|
"spl-associated-token-account 1.1.3",
|
||||||
"spl-memo 3.0.1",
|
"spl-memo 3.0.1",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -6519,7 +6519,7 @@ dependencies = [
|
||||||
"solana-sdk",
|
"solana-sdk",
|
||||||
"spl-math",
|
"spl-math",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"test-case",
|
"test-case",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
@ -6547,7 +6547,7 @@ dependencies = [
|
||||||
"solana-program-test",
|
"solana-program-test",
|
||||||
"solana-sdk",
|
"solana-sdk",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"spl-token-client",
|
"spl-token-client",
|
||||||
"test-case",
|
"test-case",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
@ -6568,7 +6568,7 @@ dependencies = [
|
||||||
"solana-test-validator",
|
"solana-test-validator",
|
||||||
"spl-associated-token-account 1.1.3",
|
"spl-associated-token-account 1.1.3",
|
||||||
"spl-token 3.5.0",
|
"spl-token 3.5.0",
|
||||||
"spl-token-2022 0.6.0",
|
"spl-token-2022 0.6.1",
|
||||||
"spl-token-client",
|
"spl-token-client",
|
||||||
"spl-token-upgrade",
|
"spl-token-upgrade",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
|
|
@ -924,6 +924,7 @@ pub fn transfer(
|
||||||
/// Create a `Transfer` instruction with fee proof
|
/// Create a `Transfer` instruction with fee proof
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[cfg(not(target_os = "solana"))]
|
#[cfg(not(target_os = "solana"))]
|
||||||
|
#[cfg(feature = "proof-program")]
|
||||||
pub fn transfer_with_fee(
|
pub fn transfer_with_fee(
|
||||||
token_program_id: &Pubkey,
|
token_program_id: &Pubkey,
|
||||||
source_token_account: &Pubkey,
|
source_token_account: &Pubkey,
|
||||||
|
|
Loading…
Reference in New Issue