NatSpec, URL register storage retrieval

fixed 2/3 tests
This commit is contained in:
zsfelfoldi
2015-03-31 08:28:12 +02:00
committed by zelig
parent 97a602864a
commit 3136bae4a5
7 changed files with 222 additions and 39 deletions

View File

@ -26,7 +26,6 @@ import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/common/natspec"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
re "github.com/ethereum/go-ethereum/jsre"
"github.com/ethereum/go-ethereum/rpc"
@ -140,11 +139,11 @@ var net = web3.net;
js.re.Eval(globalRegistrar + "registrar = new GlobalRegistrar(\"" + globalRegistrarAddr + "\");")
}
func (self *jsre) ConfirmTransaction(tx *types.Transaction) bool {
func (self *jsre) ConfirmTransaction(tx string) bool {
var notice string
nat, err := natspec.New()
nat, err := natspec.New(self.xeth, tx)
if err == nil {
notice, err = nat.Notice(tx)
notice, err = nat.Notice()
}
if err != nil {
notice = fmt.Sprintf("About to submit transaction: %v")