aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/ui_lib.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-23 17:51:48 +0800
committerobscuren <geffobscura@gmail.com>2014-04-23 17:51:48 +0800
commitb962779a1318138e08c6e84a537fdbc6c9ebfd97 (patch)
tree38ca5fe5bad13a0d947c38a13bb620ea8b80d2a9 /ethereal/ui/ui_lib.go
parenta3c8f83562c7a740ac89e63bf36f2ce44ae6627a (diff)
downloadgo-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar.gz
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar.bz2
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar.lz
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar.xz
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.tar.zst
go-tangerine-b962779a1318138e08c6e84a537fdbc6c9ebfd97.zip
Minor update and fixes to the gui and console
Diffstat (limited to 'ethereal/ui/ui_lib.go')
-rw-r--r--ethereal/ui/ui_lib.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go
index 096af16db..09f81c67e 100644
--- a/ethereal/ui/ui_lib.go
+++ b/ethereal/ui/ui_lib.go
@@ -59,6 +59,14 @@ func (ui *UiLib) OpenHtml(path string) {
return
}
win := component.CreateWindow(nil)
+ if filepath.Ext(path) == "eth" {
+ fmt.Println("Ethereum package not yet supported")
+
+ return
+
+ // TODO
+ ethutil.OpenPackage(path)
+ }
win.Set("url", path)
go func() {
@@ -126,7 +134,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
for _, str := range dis {
ui.win.Root().Call("setAsm", str)
}
- callerTx := ethchain.NewContractCreationTx(ethutil.Big(valueStr), ethutil.Big(gasPriceStr), callerScript, nil)
+ callerTx := ethchain.NewContractCreationTx(ethutil.Big(valueStr), ethutil.Big(gasStr), ethutil.Big(gasPriceStr), callerScript, nil)
// Contract addr as test address
keyPair := ethutil.Config.Db.GetKeys()[0]