Skip to content

Commit

Permalink
chore(namada): format
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jul 2, 2024
1 parent 80509a7 commit 8126bd7
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions packages/namada/src/tx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,14 @@ pub fn tx_type (tx: &Tx) -> Result<Object, Error> {
let multiplier: u64 = tx.gas_limit.into();
to_object! {
"Wrapper" = to_object! {
"fee" =
tx.fee,
"pk" =
tx.pk,
"payer" =
tx.fee_payer(),
"gasLimit" =
tx.gas_limit,
"feeAmountPerGasUnit" =
tx.fee.amount_per_gas_unit.to_string_precise(),
"feeToken" =
tx.fee.token.to_string(),
"multiplier" =
multiplier,
"gasLimitMultiplier" =
multiplier as i64,
"fee" = tx.fee,
"pk" = tx.pk,
"payer" = tx.fee_payer(),
"gasLimit" = tx.gas_limit,
"feeAmountPerGasUnit" = tx.fee.amount_per_gas_unit.to_string_precise(),
"feeToken" = tx.fee.token.to_string(),
"multiplier" = multiplier,
"gasLimitMultiplier" = multiplier as i64,
},
}
},
Expand Down

0 comments on commit 8126bd7

Please sign in to comment.