diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-04-08 18:35:02 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-20 03:57:49 +0800 |
commit | b46e15217131e4ebe64e1ee55594c3ab0620395c (patch) | |
tree | 1a732f7461c606db75e204dc46f08aefd313888d /cmd/geth/js.go | |
parent | 8e6a068d2d5b6374e0a8588a34a96a26562bae83 (diff) | |
download | go-tangerine-b46e15217131e4ebe64e1ee55594c3ab0620395c.tar.gz go-tangerine-b46e15217131e4ebe64e1ee55594c3ab0620395c.tar.zst go-tangerine-b46e15217131e4ebe64e1ee55594c3ab0620395c.zip |
default fallback NatSpec messages
Diffstat (limited to 'cmd/geth/js.go')
-rw-r--r-- | cmd/geth/js.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go index 9931b3a21..d5deea93f 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -143,14 +143,7 @@ var net = web3.net; var ds, _ = docserver.New(utils.JSpathFlag.String()) func (self *jsre) ConfirmTransaction(tx string) bool { - var notice string - nat, err := natspec.New(self.xeth, tx, ds) - if err == nil { - notice, err = nat.Notice() - } - if err != nil { - notice = fmt.Sprintf("About to submit transaction: %v") - } + notice := natspec.GetNotice(self.xeth, tx, ds) fmt.Println(notice) answer, _ := self.Prompt("Confirm Transaction\n[y/n] ") return strings.HasPrefix(strings.Trim(answer, " "), "y") |