Skip to content

Commit

Permalink
chore: fix wallet.h compile (#6496)
Browse files Browse the repository at this point in the history
Description
---
fixes wallet.h compile
  • Loading branch information
SWvheerden authored Aug 21, 2024
1 parent cfb0b58 commit a510455
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base_layer/wallet_ffi/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -2193,6 +2193,24 @@ unsigned long long completed_transaction_get_timestamp(TariCompletedTransaction
const char *completed_transaction_get_message(TariCompletedTransaction *transaction,
int *error_out);

/**
* Gets the payment id of a TariCompletedTransaction
*
* ## Arguments
* `transaction` - The pointer to a TariCompletedTransaction
* `error_out` - Pointer to an int which will be modified to an error code should one occur, may not be null. Functions
* as an out parameter.
*
* ## Returns
* `*const c_char` - Returns the pointer to the char array, note that it will return a pointer
* to an empty char array if transaction is null
*
* # Safety
* The ```string_destroy``` method must be called when finished with string coming from rust to prevent a memory leak
*/
const char *completed_transaction_get_payment_id(TariCompletedTransaction *transaction,
int *error_out);

/**
* This function checks to determine if a TariCompletedTransaction was originally a TariPendingOutboundTransaction
*
Expand Down

0 comments on commit a510455

Please sign in to comment.