feat: upgrade dependencies and bump to v0.2.15

This commit is contained in:
ysq
2025-08-05 18:30:26 +08:00
parent 1606a82971
commit 3006bd0ced
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ use solana_hash::Hash;
use solana_sdk::{
instruction::Instruction,
message::{v0, VersionedMessage},
native_token::sol_to_lamports,
native_token::sol_str_to_lamports,
pubkey::Pubkey,
signature::Keypair,
signer::Signer,
@@ -85,7 +85,7 @@ pub async fn build_tip_transaction(
instructions.push(transfer(
&payer.pubkey(),
tip_account,
sol_to_lamports(tip_amount),
sol_str_to_lamports(tip_amount.to_string().as_str()).unwrap_or(0),
));
// 获取交易使用的blockhash
@@ -191,7 +191,7 @@ pub async fn build_sell_tip_transaction(
instructions.push(transfer(
&payer.pubkey(),
tip_account,
sol_to_lamports(tip_amount),
sol_str_to_lamports(tip_amount.to_string().as_str()).unwrap_or(0),
));
// 获取地址查找表账户