solana: remove mut (token bridge)
This commit is contained in:
parent
aa22a2b950
commit
83cba60597
|
@ -402,7 +402,7 @@
|
|||
},
|
||||
{
|
||||
"name": "mint",
|
||||
"isMut": true,
|
||||
"isMut": false,
|
||||
"isSigner": false
|
||||
},
|
||||
{
|
||||
|
@ -833,7 +833,7 @@
|
|||
},
|
||||
{
|
||||
"name": "mint",
|
||||
"isMut": true,
|
||||
"isMut": false,
|
||||
"isSigner": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue