diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-10 07:57:10 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-10 07:57:10 +0800 |
commit | 1471585af082632b33eae5bf489d0ae0b277b369 (patch) | |
tree | e384ca2962012872d4cdaf3f2108c2eab8cd7ef9 /ethereal/ui/gui.go | |
parent | 0bf2d24cb030ec53abedf483189ecbaa3c9676be (diff) | |
download | dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar.gz dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar.bz2 dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar.lz dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar.xz dexon-1471585af082632b33eae5bf489d0ae0b277b369.tar.zst dexon-1471585af082632b33eae5bf489d0ae0b277b369.zip |
Moved Ext app js to its own dir
Diffstat (limited to 'ethereal/ui/gui.go')
-rw-r--r-- | ethereal/ui/gui.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go index 39da5f246..25f6e2fed 100644 --- a/ethereal/ui/gui.go +++ b/ethereal/ui/gui.go @@ -9,6 +9,7 @@ import ( "github.com/ethereum/eth-go/ethpub" "github.com/ethereum/eth-go/ethutil" "github.com/go-qml/qml" + "github.com/obscuren/mutan" "math/big" "strings" ) @@ -220,5 +221,9 @@ func (gui *Gui) Transact(recipient, value, gas, gasPrice, data string) (*ethpub. } func (gui *Gui) Create(recipient, value, gas, gasPrice, data string) (*ethpub.PReceipt, error) { - return gui.Transact(recipient, value, gas, gasPrice, data) + keyPair := ethutil.Config.Db.GetKeys()[0] + + mainInput, initInput := mutan.PreProcess(data) + + return gui.pub.Create(ethutil.Hex(keyPair.PrivateKey), value, gas, gasPrice, initInput, mainInput) } |