rpc-gen update

This commit is contained in:
Ethan Buchman
2015-05-30 20:48:40 -04:00
parent 41502e05c1
commit 293aa31f64
3 changed files with 137 additions and 75 deletions

View File

@ -212,11 +212,11 @@ func callContract(t *testing.T, client cclient.Client, address, data, expected [
// get the namereg entry
func getNameRegEntry(t *testing.T, typ string, name string) *types.NameRegEntry {
client := clients[typ]
r, err := client.NameRegEntry(name)
entry, err := client.GetName(name)
if err != nil {
t.Fatal(err)
}
return r.Entry
return entry
}
//--------------------------------------------------------------------------------