@@ -1476,19 +1476,19 @@ func (tb *TxBuilder) buildWithdrawAndExecuteAccounts(
14761476// - found=true: tx exists on-chain
14771477// - confirmations: number of slots since the tx was included (0 = just confirmed)
14781478// - status: 0 = failed, 1 = success
1479- func (tb * TxBuilder ) VerifyBroadcastedTx (ctx context.Context , txHash string ) (found bool , confirmations uint64 , status uint8 , err error ) {
1479+ func (tb * TxBuilder ) VerifyBroadcastedTx (ctx context.Context , txHash string ) (found bool , blockHeight uint64 , confirmations uint64 , status uint8 , err error ) {
14801480 sig , sigErr := solana .SignatureFromBase58 (txHash )
14811481 if sigErr != nil {
1482- return false , 0 , 0 , nil
1482+ return false , 0 , 0 , 0 , nil
14831483 }
14841484
14851485 tx , txErr := tb .rpcClient .GetTransaction (ctx , sig )
14861486 if txErr != nil {
1487- return false , 0 , 0 , nil
1487+ return false , 0 , 0 , 0 , nil
14881488 }
14891489
14901490 if tx == nil {
1491- return false , 0 , 0 , nil
1491+ return false , 0 , 0 , 0 , nil
14921492 }
14931493
14941494 // Calculate confirmations from current slot
@@ -1502,10 +1502,10 @@ func (tb *TxBuilder) VerifyBroadcastedTx(ctx context.Context, txHash string) (fo
15021502
15031503 // Check if transaction had an error
15041504 if tx .Meta != nil && tx .Meta .Err != nil {
1505- return true , confs , 0 , nil
1505+ return true , tx . Slot , confs , 0 , nil
15061506 }
15071507
1508- return true , confs , 1 , nil
1508+ return true , tx . Slot , confs , 1 , nil
15091509}
15101510
15111511// buildSetComputeUnitLimitInstruction creates a SetComputeUnitLimit instruction for the Compute Budget program
0 commit comments