aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-17 18:42:32 +0800
committerobscuren <geffobscura@gmail.com>2014-08-17 18:42:32 +0800
commit793e666f36e512bceb0d92d0a8dfe1d7c508c0e2 (patch)
tree60da2b7c280136c91fe357e81d96061a07050f59 /ethstate
parent4008ff32c903e6894f5fb4fb69c795641641d192 (diff)
downloadgo-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.gz
go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.tar.zst
go-tangerine-793e666f36e512bceb0d92d0a8dfe1d7c508c0e2.zip
Dump bytes instead of strings
Diffstat (limited to 'ethstate')
-rw-r--r--ethstate/dump.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethstate/dump.go b/ethstate/dump.go
index 2406dfc49..be60a05fc 100644
--- a/ethstate/dump.go
+++ b/ethstate/dump.go
@@ -19,7 +19,7 @@ type World struct {
Accounts map[string]Account `json:"accounts"`
}
-func (self *State) Dump() string {
+func (self *State) Dump() []byte {
world := World{
Root: ethutil.Bytes2Hex(self.Trie.Root.([]byte)),
Accounts: make(map[string]Account),
@@ -43,5 +43,5 @@ func (self *State) Dump() string {
fmt.Println("dump err", err)
}
- return string(json)
+ return json
}