diff options
author | zelig <viktor.tron@gmail.com> | 2015-07-07 13:00:58 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 17:30:55 +0800 |
commit | c5cb6e8e70339b6641b7ce46cda04b83936213b3 (patch) | |
tree | 6ab24e55a8b4bd14b3a9c25917d440c03b875bfc /cmd | |
parent | 3791831081eb2d6e0dbfb3aa96f181dbb645c394 (diff) | |
download | go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.gz go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.bz2 go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.lz go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.xz go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.zst go-tangerine-c5cb6e8e70339b6641b7ce46cda04b83936213b3.zip |
fix/skip tests, adapt registrar to no contract address
registry initialisers now return the txhash which caller can use to retrieve receipt
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/js_test.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go index eaab3acaa..646ca404a 100644 --- a/cmd/geth/js_test.go +++ b/cmd/geth/js_test.go @@ -268,18 +268,24 @@ func TestContract(t *testing.T) { defer os.RemoveAll(tmp) reg := registrar.New(repl.xeth) - err := reg.SetGlobalRegistrar("", coinbase) + _, err := reg.SetGlobalRegistrar("", coinbase) if err != nil { t.Errorf("error setting HashReg: %v", err) } - err = reg.SetHashReg("", coinbase) + _, err = reg.SetHashReg("", coinbase) if err != nil { t.Errorf("error setting HashReg: %v", err) } - err = reg.SetUrlHint("", coinbase) + _, err = reg.SetUrlHint("", coinbase) if err != nil { t.Errorf("error setting HashReg: %v", err) } + /* TODO: + * lookup receipt and contract addresses by tx hash + * name registration for HashReg and UrlHint addresses + * mine those transactions + * then set once more SetHashReg SetUrlHint + */ source := `contract test {\n` + " /// @notice Will multiply `a` by 7." + `\n` + |