aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-03 20:30:26 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-03 20:30:26 +0800
commit3755616a2912f47a963d4ecc781bddd4229fe290 (patch)
tree8a822a5fed825053fcd42e53f6657452d8c78744 /ethereal/ui
parentcc1d043423293eff97d01c8f4897b354112c8210 (diff)
downloaddexon-3755616a2912f47a963d4ecc781bddd4229fe290.tar.gz
dexon-3755616a2912f47a963d4ecc781bddd4229fe290.tar.zst
dexon-3755616a2912f47a963d4ecc781bddd4229fe290.zip
Added namereg register option to qml wallet
Diffstat (limited to 'ethereal/ui')
-rw-r--r--ethereal/ui/gui.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go
index 701bacf00..9fc1abc28 100644
--- a/ethereal/ui/gui.go
+++ b/ethereal/ui/gui.go
@@ -329,6 +329,11 @@ func (gui *Gui) Printf(format string, v ...interface{}) {
gui.win.Root().Call("addLog", line)
}
}
+func (gui *Gui) RegisterName(name string) {
+ keyPair := ethutil.GetKeyRing().Get(0)
+ name = fmt.Sprintf("\"%s\"\n1", name)
+ gui.pub.Transact(ethutil.Hex(keyPair.PrivateKey), "namereg", "1000", "1000000", "150", name)
+}
func (gui *Gui) Transact(recipient, value, gas, gasPrice, data string) (*ethpub.PReceipt, error) {
keyPair := ethutil.GetKeyRing().Get(0)