parent
86cfbec8f9
commit
8eff1bdfd0
|
@ -46,9 +46,7 @@ proc addDomain*(username: string): string =
|
||||||
proc publicKeyOf*(chainId: int, username: string): string =
|
proc publicKeyOf*(chainId: int, username: string): string =
|
||||||
try:
|
try:
|
||||||
let res = status_ens.publicKeyOf(chainId, addDomain(username))
|
let res = status_ens.publicKeyOf(chainId, addDomain(username))
|
||||||
var key = res.result.getStr
|
return res.result.getStr
|
||||||
key.removePrefix("0x")
|
|
||||||
return "0x04" & key
|
|
||||||
except:
|
except:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue