Implement getStateKeyVal for JS bindings.

Gives JS the option to 'loop' over contract key/val storage
This commit is contained in:
Maran
2014-06-04 15:54:33 +02:00
parent 307fe4a3cd
commit 7843390ecd
4 changed files with 18 additions and 3 deletions

View File

@ -65,6 +65,8 @@ func (gui *Gui) Start(assetPath string) {
Init: func(p *ethpub.PBlock, obj qml.Object) { p.Number = 0; p.Hash = "" },
}, {
Init: func(p *ethpub.PTx, obj qml.Object) { p.Value = ""; p.Hash = ""; p.Address = "" },
}, {
Init: func(p *ethpub.KeyVal, obj qml.Object) { p.Key = ""; p.Value = "" },
}})
ethutil.Config.SetClientString(fmt.Sprintf("/Ethereal v%s", version))