fix(@ens): get pubkey return the prefix

fixes #5805
This commit is contained in:
Anthony Laibe 2022-05-18 11:11:03 +02:00 committed by Anthony Laibe
parent 86cfbec8f9
commit 8eff1bdfd0
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@ proc addDomain*(username: string): string =
proc publicKeyOf*(chainId: int, username: string): string =
try:
let res = status_ens.publicKeyOf(chainId, addDomain(username))
var key = res.result.getStr
key.removePrefix("0x")
return "0x04" & key
return res.result.getStr
except:
return ""