fix/skip tests, adapt registrar to no contract address

registry initialisers now return the txhash which caller can use to retrieve receipt
This commit is contained in:
zelig
2015-07-07 06:00:58 +01:00
committed by Jeffrey Wilcke
parent 3791831081
commit c5cb6e8e70
5 changed files with 42 additions and 30 deletions

View File

@ -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` +