Changed diff output not to prefix hex with 0x

This commit is contained in:
obscuren
2014-07-14 00:37:18 +02:00
parent 6426f3635e
commit 5b2e5d180f
2 changed files with 5 additions and 5 deletions

View File

@ -212,9 +212,9 @@ func (self *State) Update() {
// Debug stuff
func (self *State) CreateOutputForDiff() {
for addr, stateObject := range self.stateObjects {
fmt.Printf("0x%x 0x%x 0x%x 0x%x\n", addr, stateObject.state.Root(), stateObject.Amount.Bytes(), stateObject.Nonce)
fmt.Printf("%x %x %x %x\n", addr, stateObject.state.Root(), stateObject.Amount.Bytes(), stateObject.Nonce)
stateObject.state.EachStorage(func(addr string, value *ethutil.Value) {
fmt.Printf("0x%x 0x%x\n", addr, value.Bytes())
fmt.Printf("%x %x\n", addr, value.Bytes())
})
}
}