mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-25 11:43:06 +00:00
Cargo fmt
This commit is contained in:
parent
78233308cc
commit
e99c92543e
@ -179,12 +179,10 @@ pub unsafe extern "C" fn wallet_ffi_claim_pinata_private_owned_already_initializ
|
||||
|
||||
let pinata = Pinata(&wallet);
|
||||
|
||||
match block_on(pinata.claim_private_owned_account_already_initialized(
|
||||
pinata_id,
|
||||
winner_id,
|
||||
solution,
|
||||
proof,
|
||||
)) {
|
||||
match block_on(
|
||||
pinata
|
||||
.claim_private_owned_account_already_initialized(pinata_id, winner_id, solution, proof),
|
||||
) {
|
||||
Ok(Ok((response, _shared_key))) => {
|
||||
let tx_hash = CString::new(response.tx_hash.to_string())
|
||||
.map(|s| s.into_raw())
|
||||
@ -197,7 +195,10 @@ pub unsafe extern "C" fn wallet_ffi_claim_pinata_private_owned_already_initializ
|
||||
WalletFfiError::Success
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
print_error(format!("Pinata private claim (already initialized) failed: {:?}", e));
|
||||
print_error(format!(
|
||||
"Pinata private claim (already initialized) failed: {:?}",
|
||||
e
|
||||
));
|
||||
unsafe {
|
||||
(*out_result).tx_hash = ptr::null_mut();
|
||||
(*out_result).success = false;
|
||||
@ -282,7 +283,10 @@ pub unsafe extern "C" fn wallet_ffi_claim_pinata_private_owned_not_initialized(
|
||||
WalletFfiError::Success
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
print_error(format!("Pinata private claim (not initialized) failed: {:?}", e));
|
||||
print_error(format!(
|
||||
"Pinata private claim (not initialized) failed: {:?}",
|
||||
e
|
||||
));
|
||||
unsafe {
|
||||
(*out_result).tx_hash = ptr::null_mut();
|
||||
(*out_result).success = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user