@ -120,10 +122,7 @@ func testGetStorage(t *testing.T, typ string) {
}
// allow it to get mined
waitForEvent(t,con,eid,true,func(){
},func(eidstring,b[]byte)error{
returnnil
})
waitForEvent(t,con,eid,true,func(){},doNothing)
mempoolCount=0
v:=getStorage(t,typ,contractAddr,[]byte{0x1})
@ -179,10 +178,7 @@ func testCall(t *testing.T, typ string) {
}
// allow it to get mined
waitForEvent(t,con,eid,true,func(){
},func(eidstring,b[]byte)error{
returnnil
})
waitForEvent(t,con,eid,true,func(){},doNothing)
mempoolCount=0
// run a call through the contract
@ -192,6 +188,7 @@ func testCall(t *testing.T, typ string) {
}
functestNameReg(t*testing.T,typstring){
client:=clients[typ]
con:=newWSCon(t)
eid:=types.EventStringNewBlock()
subscribe(t,con,eid)
@ -200,23 +197,39 @@ func testNameReg(t *testing.T, typ string) {
con.Close()
}()
// register a new name, check if its there
amt,fee:=uint64(6969),uint64(1000)
// since entries ought to be unique and these run against different clients, we append the typ
name:="ye-old-domain-name-"+typ
data:="these are amongst the things I wish to bestow upon the youth of generations come: a safe supply of honey, and a better money. For what else shall they need?"
name:="ye_old_domain_name_"+typ
data:="these are amongst the things I wish to bestow upon the youth of generations come: a safe supply of honey, and a better money. For what else shall they need"