State dumps from gui

This commit is contained in:
obscuren
2014-08-17 12:41:23 +02:00
parent 2eab964a00
commit 27735bbdfc
10 changed files with 158 additions and 26 deletions

View File

@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/url"
"os"
@ -139,3 +140,8 @@ func (self *HtmlApplication) Messages(messages ethstate.Messages, id string) {
func (app *HtmlApplication) Destroy() {
app.engine.Destroy()
}
func (app *HtmlApplication) Post(data string, seed int) {
fmt.Println("about to call 'post'")
app.webView.Call("post", seed, data)
}