add log
This commit is contained in:
@@ -131,6 +131,10 @@ pub fn buy(
|
|||||||
args: Buy,
|
args: Buy,
|
||||||
) -> Instruction {
|
) -> Instruction {
|
||||||
let bonding_curve: Pubkey = PumpFun::get_bonding_curve_pda(mint).unwrap();
|
let bonding_curve: Pubkey = PumpFun::get_bonding_curve_pda(mint).unwrap();
|
||||||
|
|
||||||
|
println!("user_ata: {:?}", get_associated_token_address(&payer.pubkey(), mint));
|
||||||
|
println!("bonding_curve_ata: {:?}", get_associated_token_address(&bonding_curve, mint));
|
||||||
|
|
||||||
Instruction::new_with_bytes(
|
Instruction::new_with_bytes(
|
||||||
constants::accounts::PUMPFUN,
|
constants::accounts::PUMPFUN,
|
||||||
&args.data(),
|
&args.data(),
|
||||||
|
|||||||
Reference in New Issue
Block a user