Skip to content

Commit

Permalink
Handle optional details
Browse files Browse the repository at this point in the history
  • Loading branch information
coa-telos committed Dec 9, 2024
1 parent 8745b79 commit 660bc39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/antelope/src/api/v1/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub struct SendTransactionResponse2Error {
pub name: String,
pub message: String,
pub stack: Vec<SendTransactionResponse2ExceptionStack>,
pub details: Vec<SendTransactionResponseErrorDetails>,
pub details: Option<Vec<SendTransactionResponseErrorDetails>>,
}

impl From<SendTransactionResponseError> for SendTransactionResponse2Error {
Expand All @@ -256,7 +256,7 @@ impl From<SendTransactionResponseError> for SendTransactionResponse2Error {
name: value.name,
message: value.what,
stack,
details: value.details,
details: Some(value.details),
}
}
}
Expand Down

0 comments on commit 660bc39

Please sign in to comment.