Added gas and gas price.

* library's `createTx` method changed so it accepts a gas price
* dev console accepts code as well as the library
This commit is contained in:
obscuren
2014-03-27 19:41:42 +01:00
parent 1257e8b4b3
commit c5215fd4fb
3 changed files with 76 additions and 9 deletions

View File

@ -190,7 +190,11 @@ func (i *Console) ParseInput(input string) bool {
}
case "contract":
fmt.Println("Contract editor (Ctrl-D = done)")
asm := mutan.NewCompiler().Compile(strings.NewReader(i.Editor()))
asm, err := mutan.NewCompiler().Compile(strings.NewReader(i.Editor()))
if err != nil {
fmt.Println(err)
break
}
code := ethutil.Assemble(asm)