Skip to content

Commit

Permalink
Fix temp endpoint (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass authored Mar 22, 2024
1 parent 553100f commit 2c9240b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct TempUpdateSubDaoEpochInfo<'info> {
pub sub_dao: Account<'info, SubDaoV0>,
#[account(
mut,
token::authority = &Pubkey::from_str(FIX_DEPLOYER_KEY).unwrap(),
address = Pubkey::from_str(FIX_DEPLOYER_KEY).unwrap(),
)]
pub authority: Signer<'info>,
pub system_program: Program<'info, System>,
Expand Down
11 changes: 9 additions & 2 deletions utils/vehnt/src/cli/delegated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use anchor_lang::AccountDeserialize;
use solana_account_decoder::UiAccountEncoding;
use solana_client::{
nonblocking::rpc_client::RpcClient,
rpc_config::RpcProgramAccountsConfig,
rpc_config::{RpcProgramAccountsConfig, RpcSendTransactionConfig},
rpc_filter::{Memcmp, RpcFilterType},
};
use solana_program::system_program;
Expand Down Expand Up @@ -374,13 +374,20 @@ impl Delegated {
blockhash,
);
let res = rpc_client
.send_and_confirm_transaction_with_spinner_and_commitment(
.send_and_confirm_transaction_with_spinner_and_config(
&transaction,
CommitmentConfig::confirmed(),
RpcSendTransactionConfig {
skip_preflight: true,
..RpcSendTransactionConfig::default()
},
)
.await;
if res.is_ok() {
println!("Success {}", res.unwrap());
break;
} else {
println!("Err {}", res.err().unwrap());
}
}
}
Expand Down

0 comments on commit 2c9240b

Please sign in to comment.