Skip to content

Commit

Permalink
Fix to_sql_value pad zeros on hex string (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
broody authored Oct 4, 2023
1 parent beccfc4 commit fad57c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/dojo-types/src/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Primitive {
Primitive::U128(_)
| Primitive::ContractAddress(_)
| Primitive::ClassHash(_)
| Primitive::Felt252(_) => Ok(format!("'{:0>64x}'", value[0])),
| Primitive::Felt252(_) => Ok(format!("'0x{:064x}'", value[0])),

Primitive::U256(_) => {
if value.len() < 2 {
Expand Down

0 comments on commit fad57c9

Please sign in to comment.