aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-07-07 13:00:58 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 17:30:55 +0800
commitc5cb6e8e70339b6641b7ce46cda04b83936213b3 (patch)
tree6ab24e55a8b4bd14b3a9c25917d440c03b875bfc /cmd
parent3791831081eb2d6e0dbfb3aa96f181dbb645c394 (diff)
downloadgo-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.go12
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` +