Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tukan committed Nov 13, 2024
1 parent 32f6ef3 commit 1ae2e42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ impl TransactionRepo {
chain_id,
calldata,
logs,
neon_step_cnt
neon_step_cnt,
NULL as block_hash
FROM neon_transactions T
WHERE neon_sig = $1
"#,
Expand Down Expand Up @@ -743,7 +744,7 @@ pub struct NeonTransactionRow {
is_canceled: bool,
is_completed: bool,

logs: Option<String>,
logs: Option<Vec<u8>>,

v: PgU256,
r: PgU256,
Expand Down Expand Up @@ -867,7 +868,7 @@ impl NeonTransactionRow {
}

fn parse_logs(&self) -> Vec<RichLog> {
serde_json::from_str(self.logs.as_deref().unwrap_or_default()).unwrap_or_default()
serde_json::from_slice(self.logs.as_deref().unwrap_or_default()).unwrap_or_default()
}

fn neon_tx_info_with_default_cu(self) -> anyhow::Result<WithBlockhash<NeonTxInfo>> {
Expand Down

0 comments on commit 1ae2e42

Please sign in to comment.