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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user