diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-14 06:37:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-14 06:37:18 +0800 |
commit | 5b2e5d180fa79865b6319f4251a440da44a81809 (patch) | |
tree | 547d73c6110425eb6c78f929bacea1e80702137d /ethchain/state.go | |
parent | 6426f3635eddaa1477e643886fd3c0eaf1fa6158 (diff) | |
download | go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.gz go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.tar.zst go-tangerine-5b2e5d180fa79865b6319f4251a440da44a81809.zip |
Changed diff output not to prefix hex with 0x
Diffstat (limited to 'ethchain/state.go')
-rw-r--r-- | ethchain/state.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/state.go b/ethchain/state.go index 8df79dcef..4faf691f2 100644 --- a/ethchain/state.go +++ b/ethchain/state.go @@ -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()) }) } } |