aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-31 04:03:29 +0800
committerobscuren <geffobscura@gmail.com>2014-03-31 04:03:29 +0800
commitebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a (patch)
tree684273091e74e345eaad76190d155ac1ae92f2a2
parent3fb7ae2fa19fede545466694fbf9d86a85310bd9 (diff)
downloaddexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar.gz
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar.bz2
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar.lz
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar.xz
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.tar.zst
dexon-ebbc5e7cb8b3886c8557f9f8623113f52f7f5e4a.zip
Updated to new mutan api
-rw-r--r--README.md12
-rw-r--r--ethereal/ui/library.go2
-rw-r--r--ethereum/dev_console.go2
3 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index a29bfb6d3..04c0cf78a 100644
--- a/README.md
+++ b/README.md
@@ -13,18 +13,17 @@ Build
=======
For build instruction please see the [Wiki](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum(Go))
-Command line options
+General command line options
====================
```
--c Launch the developer console
+-c Launch the developer console (node only)
-m Start mining blocks
-genaddr Generates a new address and private key (destructive action)
-p Port on which the server will accept incomming connections (= 30303)
-upnp Enable UPnP (= false)
-x Desired amount of peers (= 5)
-h This help
--gui Launch with GUI (= true)
-dir Data directory used to store configs and databases (=".ethereum")
-import Import a private key (hex)
```
@@ -33,8 +32,9 @@ Developer console commands
==========================
```
-addp <host>:<port> Connect to the given host
-tx <addr> <amount> Send <amount> Wei to the specified <addr>
+addp <host>:<port> Connect to the given host
+tx <addr> <amount> Send <amount> Wei to the specified <addr>
+contract <value> <gasprice> Creates a new contract and launches the editor
```
See the "help" command for *developer* options.
@@ -57,7 +57,7 @@ Coding standards
Sources should be formatted according to the [Go Formatting
Style](http://golang.org/doc/effective_go.html#formatting).
-Unless structs fields are supposed to be directly accesible, provide
+Unless structs fields are supposed to be directly accessible, provide
Getters and hide the fields through Go's exporting facility.
When you comment put meaningfull comments. Describe in detail what you
diff --git a/ethereal/ui/library.go b/ethereal/ui/library.go
index bd67f3c20..692ec454c 100644
--- a/ethereal/ui/library.go
+++ b/ethereal/ui/library.go
@@ -35,7 +35,7 @@ func (lib *EthLib) CreateTx(recipient, valueStr, gasStr, gasPriceStr, data strin
var tx *ethchain.Transaction
// Compile and assemble the given data
if contractCreation {
- asm, err := mutan.NewCompiler().Compile(strings.NewReader(data))
+ asm, err := mutan.Compile(strings.NewReader(data), false)
if err != nil {
return err.Error()
}
diff --git a/ethereum/dev_console.go b/ethereum/dev_console.go
index ff25d694c..421c3fa60 100644
--- a/ethereum/dev_console.go
+++ b/ethereum/dev_console.go
@@ -190,7 +190,7 @@ func (i *Console) ParseInput(input string) bool {
}
case "contract":
fmt.Println("Contract editor (Ctrl-D = done)")
- asm, err := mutan.NewCompiler().Compile(strings.NewReader(i.Editor()))
+ asm, err := mutan.Compile(strings.NewReader(i.Editor()), false)
if err != nil {
fmt.Println(err)
break