mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +00:00
Removed CreateTx
This commit is contained in:
parent
c5215fd4fb
commit
3fb7ae2fa1
1 changed files with 3 additions and 3 deletions
|
|
@ -53,9 +53,9 @@ func (i *Console) ValidateInput(action string, argumentLength int) error {
|
||||||
case action == "gettx" && argumentLength != 1:
|
case action == "gettx" && argumentLength != 1:
|
||||||
err = true
|
err = true
|
||||||
expArgCount = 1
|
expArgCount = 1
|
||||||
case action == "tx" && argumentLength != 2:
|
case action == "tx" && argumentLength != 4:
|
||||||
err = true
|
err = true
|
||||||
expArgCount = 2
|
expArgCount = 4
|
||||||
case action == "getaddr" && argumentLength != 1:
|
case action == "getaddr" && argumentLength != 1:
|
||||||
err = true
|
err = true
|
||||||
expArgCount = 1
|
expArgCount = 1
|
||||||
|
|
@ -171,7 +171,7 @@ func (i *Console) ParseInput(input string) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("recipient err:", err)
|
fmt.Println("recipient err:", err)
|
||||||
} else {
|
} 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]
|
key := ethutil.Config.Db.GetKeys()[0]
|
||||||
tx.Sign(key.PrivateKey)
|
tx.Sign(key.PrivateKey)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue