Skip to content

Commit

Permalink
fix set_allowances postgres will failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tommady committed Aug 29, 2024
1 parent 8e4b342 commit 61101a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm-exporter/src/setter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl Setter for PgSetter {
value: U256,
) -> Result<()> {
self.conn.get()?.execute("INSERT INTO allowances(owner, spender, value, height) VALUES($1, $2, $3, $4)",
&[&owner.to_string(), &spender.to_string(), &value.to_string(),&height],
&[&owner.to_string(), &spender.to_string(), &value.to_string(), &( height as i64 )],
)?;
Ok(())
}
Expand Down

0 comments on commit 61101a2

Please sign in to comment.