diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-28 02:41:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-28 02:41:42 +0800 |
commit | c5215fd4fb9de7594fdb812f8f9e4c471ee8d003 (patch) | |
tree | 4d301432a63fee2049c12caebb04d18a3480545a /ethereal/assets/qml | |
parent | 1257e8b4b30293784d24011ab6f9d8b4498ecfa4 (diff) | |
download | go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.gz go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.bz2 go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.lz go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.xz go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.zst go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.zip |
Added gas and gas price.
* library's `createTx` method changed so it accepts a gas price
* dev console accepts code as well as the library
Diffstat (limited to 'ethereal/assets/qml')
-rw-r--r-- | ethereal/assets/qml/wallet.qml | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml index 7fc7f5447..f6b31f0fd 100644 --- a/ethereal/assets/qml/wallet.qml +++ b/ethereal/assets/qml/wallet.qml @@ -158,20 +158,35 @@ ApplicationWindow { anchors.leftMargin: 5 anchors.topMargin: 5 TextField { - id: txAmount + id: txRecipient + placeholderText: "Recipient address (or empty for contract)" + Layout.fillWidth: true + } + + TextField { + id: txValue width: 200 placeholderText: "Amount" } - TextField { - id: txReceiver - placeholderText: "Receiver Address (or empty for contract)" - Layout.fillWidth: true + id: txGas + width: 200 + placeholderText: "Gas" + anchors.left: txValue + anchors.leftMargin: 5 + } + TextField { + id: txGasPrice + width: 200 + placeholderText: "Gas price" + anchors.left: txGas + anchors.leftMargin: 5 } Label { text: "Transaction data" } + TextArea { id: codeView anchors.topMargin: 5 @@ -180,9 +195,11 @@ ApplicationWindow { } Button { + id: txButton text: "Send" onClicked: { - console.log(eth.createTx(txReceiver.text, txAmount.text, codeView.text)) + this.enabled = false + console.log(eth.createTx(txRecipient.text, txValue.text, txGas.text, txGasPrice.text, codeView.text)) } } } |