Skip to content

Commit

Permalink
feat: fixing the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Nov 4, 2024
1 parent c498c6c commit a9cdd92
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/handlers/wallet/get_calls_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,16 @@ async fn handler_internal(
GetCallsStatusInternalError::UserOperationReceiptError(e.to_string()),
)
})?;
// TODO handle None as CallStatus::Pending

let receipt = match receipt {
Some(receipt) => receipt,
None => {
return Ok(GetCallsStatusResult {
status: CallStatus::Pending,
receipts: None,
})
}
};

Ok(GetCallsStatusResult {
status: if receipt.receipt.status == U8::from(1) {
Expand Down

0 comments on commit a9cdd92

Please sign in to comment.