aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-28 02:41:42 +0800
committerobscuren <geffobscura@gmail.com>2014-03-28 02:41:42 +0800
commitc5215fd4fb9de7594fdb812f8f9e4c471ee8d003 (patch)
tree4d301432a63fee2049c12caebb04d18a3480545a /ethereum
parent1257e8b4b30293784d24011ab6f9d8b4498ecfa4 (diff)
downloadgo-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.gz
go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.tar.zst
go-tangerine-c5215fd4fb9de7594fdb812f8f9e4c471ee8d003.zip
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
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/dev_console.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereum/dev_console.go b/ethereum/dev_console.go
index 5452b9a61..5fdf90509 100644
--- a/ethereum/dev_console.go
+++ b/ethereum/dev_console.go
@@ -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)