Fix ens names and contact (#1810)

Currently the wrong pk format was used to query the in-memory contacts,
this commit corrects the behavior.
This commit is contained in:
Andrea Maria Piana 2020-01-23 09:24:28 +01:00 committed by GitHub
parent 21c67f7296
commit a4f88d0017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
0.39.10
0.39.11

View file

@ -2057,7 +2057,7 @@ func (m *Messenger) VerifyENSNames(rpcEndpoint, contractAddress string, ensDetai
var contacts []*Contact
for _, details := range ensResponse {
if details.Error == nil {
contact, ok := m.allContacts[details.PublicKeyString]
contact, ok := m.allContacts["0x"+details.PublicKeyString]
if !ok {
contact, err = buildContact(details.PublicKey)
if err != nil {

View file

@ -2057,7 +2057,7 @@ func (m *Messenger) VerifyENSNames(rpcEndpoint, contractAddress string, ensDetai
var contacts []*Contact
for _, details := range ensResponse {
if details.Error == nil {
contact, ok := m.allContacts[details.PublicKeyString]
contact, ok := m.allContacts["0x"+details.PublicKeyString]
if !ok {
contact, err = buildContact(details.PublicKey)
if err != nil {