|
|
@ -67,6 +67,7 @@ func (gui *Gui) Start(assetPath string) { |
|
|
|
}}) |
|
|
|
}}) |
|
|
|
|
|
|
|
|
|
|
|
ethutil.Config.SetClientString(fmt.Sprintf("/Ethereal v%s", version)) |
|
|
|
ethutil.Config.SetClientString(fmt.Sprintf("/Ethereal v%s", version)) |
|
|
|
|
|
|
|
|
|
|
|
// Create a new QML engine
|
|
|
|
// Create a new QML engine
|
|
|
|
gui.engine = qml.NewEngine() |
|
|
|
gui.engine = qml.NewEngine() |
|
|
|
context := gui.engine.Context() |
|
|
|
context := gui.engine.Context() |
|
|
@ -315,3 +316,11 @@ func (gui *Gui) Create(recipient, value, gas, gasPrice, data string) (*ethpub.PR |
|
|
|
|
|
|
|
|
|
|
|
return gui.pub.Transact(ethutil.Hex(keyPair.PrivateKey), recipient, value, gas, gasPrice, data) |
|
|
|
return gui.pub.Transact(ethutil.Hex(keyPair.PrivateKey), recipient, value, gas, gasPrice, data) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (gui *Gui) ChangeClientId(id string) { |
|
|
|
|
|
|
|
ethutil.Config.SetIdentifier(id) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (gui *Gui) ClientId() string { |
|
|
|
|
|
|
|
return ethutil.Config.Identifier |
|
|
|
|
|
|
|
} |
|
|
|