Skip to content

Commit

Permalink
update endpoint and swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Dec 17, 2024
1 parent b31c0cd commit f57766a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,8 @@ components:
type: string
gasLimit:
type: string
gasUsed:
type: string
blockHeight:
type: string
innerTransactions:
Expand Down
2 changes: 2 additions & 0 deletions webserver/src/response/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub struct WrapperTransaction {
pub fee_payer: String,
pub fee_token: String,
pub gas_limit: String,
pub gas_used: Option<String>,
pub block_height: u64,
pub inner_transactions: Vec<ShortInnerTransaction>,
pub exit_code: TransactionResult,
Expand Down Expand Up @@ -124,6 +125,7 @@ impl From<WrapperTransactionDb> for WrapperTransaction {
fee_payer: value.fee_payer,
fee_token: value.fee_token,
gas_limit: value.gas_limit,
gas_used: value.gas_used,
block_height: value.block_height as u64,
inner_transactions: vec![],
exit_code: TransactionResult::from(value.exit_code),
Expand Down

0 comments on commit f57766a

Please sign in to comment.