solana: remove mut (token bridge)

This commit is contained in:
A5 Pickle 2024-03-27 13:39:54 -05:00
parent aa22a2b950
commit 83cba60597
No known key found for this signature in database
GPG Key ID: DD6C727938DE8E65
4 changed files with 7 additions and 7 deletions

View File

@ -402,7 +402,7 @@
},
{
"name": "mint",
"isMut": true,
"isMut": false,
"isSigner": false
},
{
@ -833,7 +833,7 @@
},
{
"name": "mint",
"isMut": true,
"isMut": false,
"isSigner": false
},
{

View File

@ -59,7 +59,7 @@ pub struct TransferNative<'b> {
pub from: Mut<Data<'b, SplAccount, { AccountState::Initialized }>>,
pub mint: Mut<Data<'b, SplMint, { AccountState::Initialized }>>,
pub mint: Data<'b, SplMint, { AccountState::Initialized }>,
pub custody: Mut<CustodyAccount<'b, { AccountState::MaybeInitialized }>>,
@ -174,7 +174,7 @@ pub fn verify_and_execute_native_transfers(
derivation_data: &CustodyAccountDerivationData,
payer: &Mut<Signer<AccountInfo>>,
from: &Mut<Data<SplAccount, { AccountState::Initialized }>>,
mint: &Mut<Data<SplMint, { AccountState::Initialized }>>,
mint: &Data<SplMint, { AccountState::Initialized }>,
custody: &Mut<CustodyAccount<{ AccountState::MaybeInitialized }>>,
authority_signer: &AuthoritySigner,
custody_signer: &CustodySigner,

View File

@ -128,7 +128,7 @@ pub struct TransferNativeWithPayload<'b> {
pub config: ConfigAccount<'b, { AccountState::Initialized }>,
pub from: Mut<Data<'b, SplAccount, { AccountState::Initialized }>>,
pub mint: Mut<Data<'b, SplMint, { AccountState::Initialized }>>,
pub mint: Data<'b, SplMint, { AccountState::Initialized }>,
pub custody: Mut<CustodyAccount<'b, { AccountState::MaybeInitialized }>>,
// This could allow someone to race someone else's tx if they do the approval in a separate tx.

View File

@ -505,7 +505,7 @@ pub fn transfer_native(
AccountMeta::new(payer, true),
AccountMeta::new_readonly(config_key, false),
AccountMeta::new(from, false),
AccountMeta::new(mint, false),
AccountMeta::new_readonly(mint, false),
AccountMeta::new(custody_key, false),
AccountMeta::new_readonly(authority_signer_key, false),
AccountMeta::new_readonly(custody_signer_key, false),
@ -590,7 +590,7 @@ pub fn transfer_native_with_payload(
AccountMeta::new(payer, true),
AccountMeta::new_readonly(config_key, false),
AccountMeta::new(from, false),
AccountMeta::new(mint, false),
AccountMeta::new_readonly(mint, false),
AccountMeta::new(custody_key, false),
AccountMeta::new_readonly(authority_signer_key, false),
AccountMeta::new_readonly(custody_signer_key, false),