Skip to content

Commit

Permalink
fix: revert partial edit in dex mod for pindexer
Browse files Browse the repository at this point in the history
  • Loading branch information
conorsch committed Jul 25, 2024
1 parent dbe2455 commit 8ff2310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/pindexer/src/dex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Event {
let mut step_end = None;
for step in trace {
let (id,): (i32,) = sqlx::query_as(
r#"INSERT INTO trace_step VALUES (DEFAULT, ($1, $2)) RETURNING id;"#,
r#"INSERT INTO trace_step VALUES (DEFAULT, (CAST($1 AS Amount), $2)) RETURNING id;"#,
)
.bind(step.amount.to_string())
.bind(Sql::from(step.asset_id))
Expand Down

0 comments on commit 8ff2310

Please sign in to comment.