Merge pull request #40 from tamasblummer/unit_debug_fix

fixing debug output for Uint256 and Uint128
This commit is contained in:
Andrew Poelstra 2018-02-18 14:57:00 +00:00 committed by GitHub
commit 3547d27430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ macro_rules! construct_uint {
let &$name(ref data) = self; let &$name(ref data) = self;
try!(write!(f, "0x")); try!(write!(f, "0x"));
for ch in data.iter().rev() { for ch in data.iter().rev() {
try!(write!(f, "{:02x}", ch)); try!(write!(f, "{:016x}", ch));
} }
Ok(()) Ok(())
} }