aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/gui.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-25 22:58:52 +0800
committerzelig <viktor.tron@gmail.com>2015-03-27 03:00:18 +0800
commit4ec38e39320ee9abccd96da765a9c65fccd04151 (patch)
tree3f57aebae8bd42f766b80a3db5e3b22328e9a181 /cmd/mist/gui.go
parent23e41a57ad7e7cb4bc5a1cbad28bbf8d65907fdd (diff)
downloaddexon-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.gz
dexon-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.zst
dexon-4ec38e39320ee9abccd96da765a9c65fccd04151.zip
common: remove WriteFile and ReadAllFile (use ioutil instead)
Diffstat (limited to 'cmd/mist/gui.go')
-rw-r--r--cmd/mist/gui.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go
index 08f02f833..d37d6f81b 100644
--- a/cmd/mist/gui.go
+++ b/cmd/mist/gui.go
@@ -25,6 +25,7 @@ import "C"
import (
"encoding/json"
"fmt"
+ "io/ioutil"
"math/big"
"path"
"runtime"
@@ -91,8 +92,8 @@ func NewWindow(ethereum *eth.Ethereum) *Gui {
plugins: make(map[string]plugin),
serviceEvents: make(chan ServEv, 1),
}
- data, _ := common.ReadAllFile(path.Join(ethereum.DataDir, "plugins.json"))
- json.Unmarshal([]byte(data), &gui.plugins)
+ data, _ := ioutil.ReadFile(path.Join(ethereum.DataDir, "plugins.json"))
+ json.Unmarshal(data, &gui.plugins)
return gui
}