diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-04 21:54:33 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-04 21:54:33 +0800 |
commit | 7843390ecd52df37a28282d76be198d5456ce385 (patch) | |
tree | 42ab782f2bbd2246481d7336c424e835004064ff /ethereal/ui | |
parent | 307fe4a3cd4ff2d3910ed992e6e98a7cd3ca6f87 (diff) | |
download | dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.gz dexon-7843390ecd52df37a28282d76be198d5456ce385.tar.zst dexon-7843390ecd52df37a28282d76be198d5456ce385.zip |
Implement getStateKeyVal for JS bindings.
Gives JS the option to 'loop' over contract key/val storage
Diffstat (limited to 'ethereal/ui')
-rw-r--r-- | ethereal/ui/gui.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go index 9fc1abc28..4dda5017f 100644 --- a/ethereal/ui/gui.go +++ b/ethereal/ui/gui.go @@ -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)) |