From a4f88d001768d2934f1ddbd75d757c52e823accb Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Thu, 23 Jan 2020 09:24:28 +0100 Subject: [PATCH] Fix ens names and contact (#1810) Currently the wrong pk format was used to query the in-memory contacts, this commit corrects the behavior. --- VERSION | 2 +- protocol/messenger.go | 2 +- vendor/github.com/status-im/status-go/protocol/messenger.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index b35ae3eca..3d41a9b22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.39.10 +0.39.11 diff --git a/protocol/messenger.go b/protocol/messenger.go index f0afa68e4..8b013d789 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -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 { diff --git a/vendor/github.com/status-im/status-go/protocol/messenger.go b/vendor/github.com/status-im/status-go/protocol/messenger.go index f0afa68e4..8b013d789 100644 --- a/vendor/github.com/status-im/status-go/protocol/messenger.go +++ b/vendor/github.com/status-im/status-go/protocol/messenger.go @@ -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 {