diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-03 03:53:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-03 03:53:49 +0800 |
commit | c3ee0e92b8f782aa51eae384d05d62f0ea9b753d (patch) | |
tree | a91ae1ee6d40192f3b0de1ace0a87db6e1412468 /dev_console.go | |
parent | cce842314fa61fcd2a4b205b04313d9728ea2a57 (diff) | |
download | dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar.gz dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar.bz2 dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar.lz dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar.xz dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.tar.zst dexon-c3ee0e92b8f782aa51eae384d05d62f0ea9b753d.zip |
Recipient as bytes
Diffstat (limited to 'dev_console.go')
-rw-r--r-- | dev_console.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dev_console.go b/dev_console.go index 76f8ec72e..f93300aad 100644 --- a/dev_console.go +++ b/dev_console.go @@ -144,7 +144,8 @@ func (i *Console) ParseInput(input string) bool { case "encode": fmt.Printf("%q\n", ethutil.Encode(tokens[1])) case "tx": - tx := ethchain.NewTransaction(tokens[1], ethutil.Big(tokens[2]), []string{""}) + recipient, _ := hex.DecodeString(tokens[1]) + tx := ethchain.NewTransaction(recipient, ethutil.Big(tokens[2]), []string{""}) fmt.Printf("%x\n", tx.Hash()) i.ethereum.TxPool.QueueTransaction(tx) @@ -158,7 +159,7 @@ func (i *Console) ParseInput(input string) bool { fmt.Println("gettx: tx not found") } case "contract": - contract := ethchain.NewTransaction("", ethutil.Big(tokens[1]), []string{"PUSH", "1234"}) + contract := ethchain.NewTransaction([]byte{}, ethutil.Big(tokens[1]), []string{"PUSH", "1234"}) fmt.Printf("%x\n", contract.Hash()) i.ethereum.TxPool.QueueTransaction(contract) |