Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

Commit fba6a54

Browse files
authored
Changes API send_tokens to Return Null on Failure (#313)
1 parent 2b206ed commit fba6a54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vcx/libvcx/src/api/wallet.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ pub extern fn vcx_wallet_send_tokens(command_handle: u32,
382382
Err(e) => {
383383
let msg = "Failed to send tokens".to_string();
384384
info!("vcx_wallet_send_tokens_cb(command_handle: {}, rc: {}, reciept: {})", command_handle, e.to_error_code(), msg);
385-
let msg = CStringUtils::string_to_cstring(msg);
386-
cb(command_handle, e.to_error_code(), msg.as_ptr());
385+
cb(command_handle, e.to_error_code(), ptr::null());
387386
},
388387
}
389388
});

0 commit comments

Comments
 (0)