aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-28 02:45:55 +0800
committerobscuren <geffobscura@gmail.com>2014-03-28 02:45:55 +0800
commit3fb7ae2fa19fede545466694fbf9d86a85310bd9 (patch)
treeeec4c62e40ebe55819644ad19790e60aeed64555 /ethereum
parentc5215fd4fb9de7594fdb812f8f9e4c471ee8d003 (diff)
downloaddexon-3fb7ae2fa19fede545466694fbf9d86a85310bd9.tar.gz
dexon-3fb7ae2fa19fede545466694fbf9d86a85310bd9.tar.zst
dexon-3fb7ae2fa19fede545466694fbf9d86a85310bd9.zip
Removed CreateTx
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/dev_console.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethereum/dev_console.go b/ethereum/dev_console.go
index 5fdf90509..ff25d694c 100644
--- a/ethereum/dev_console.go
+++ b/ethereum/dev_console.go
@@ -53,9 +53,9 @@ func (i *Console) ValidateInput(action string, argumentLength int) error {
case action == "gettx" && argumentLength != 1:
err = true
expArgCount = 1
- case action == "tx" && argumentLength != 2:
+ case action == "tx" && argumentLength != 4:
err = true
- expArgCount = 2
+ expArgCount = 4
case action == "getaddr" && argumentLength != 1:
err = true
expArgCount = 1
@@ -171,7 +171,7 @@ func (i *Console) ParseInput(input string) bool {
if err != nil {
fmt.Println("recipient err:", err)
} else {
- tx := ethchain.NewTx(recipient, ethutil.Big(tokens[2]), []string{""})
+ tx := ethchain.NewTransactionMessage(recipient, ethutil.Big(tokens[2]), ethutil.Big(tokens[3]), ethutil.Big(tokens[4]), []string{""})
key := ethutil.Config.Db.GetKeys()[0]
tx.Sign(key.PrivateKey)