Closed stanleyjzheng closed 4 months ago
primitives
0.7.2
macOS (Apple Silicon)
Ethers properly formats zero-padding with the format!() macro, but it seems like alloy's uints ignore it. A minimal example would be
format!()
let x = U256::from(10); assert_eq!( format!("{:0>width$}", x, width = 18_usize), format!("{:0>width$}", x.to_string(), width = 18_usize) )
Can you please re-open the issue in recmo/uint
Ah got it, thanks
Component
primitives
What version of Alloy are you on?
0.7.2
Operating System
macOS (Apple Silicon)
Describe the bug
Ethers properly formats zero-padding with the
format!()
macro, but it seems like alloy's uints ignore it. A minimal example would be