diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-24 20:51:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-24 20:51:16 +0800 |
commit | fe9eb472887baec464cc50657affd85b13bcbeba (patch) | |
tree | 07ac439393d244a45470ba86792ae9c159d9e11a /dev_console.go | |
parent | 0656f465b0c0690f237e42ac1e8f306dcda6c40b (diff) | |
download | go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar.gz go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar.bz2 go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar.lz go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar.xz go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.tar.zst go-tangerine-fe9eb472887baec464cc50657affd85b13bcbeba.zip |
Minor fixes that to reflect changes in library
Diffstat (limited to 'dev_console.go')
-rw-r--r-- | dev_console.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev_console.go b/dev_console.go index 2e6b385df..696493cdd 100644 --- a/dev_console.go +++ b/dev_console.go @@ -197,16 +197,16 @@ func (i *Console) ParseInput(input string) bool { } case "contract": fmt.Println("Contract editor (Ctrl-D = done)") - code := i.Editor() + code := ethchain.Compile(i.Editor()) - contract := ethchain.NewTransaction([]byte{}, ethutil.Big(tokens[1]), code) + contract := ethchain.NewTransaction(ethchain.ContractAddr, ethutil.Big(tokens[1]), code) data, _ := ethutil.Config.Db.Get([]byte("KeyRing")) keyRing := ethutil.NewValueFromBytes(data) contract.Sign(keyRing.Get(0).Bytes()) i.ethereum.TxPool.QueueTransaction(contract) - fmt.Printf("%x\n", contract.Hash()) + fmt.Printf("%x\n", contract.Hash()[12:]) case "exit", "quit", "q": return false case "help": |