Moved Ext app js to its own dir
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user