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 var contacts []*Contact
for _, details := range ensResponse { for _, details := range ensResponse {
if details.Error == nil { if details.Error == nil {
contact, ok := m.allContacts[details.PublicKeyString] contact, ok := m.allContacts["0x"+details.PublicKeyString]
if !ok { if !ok {
contact, err = buildContact(details.PublicKey) contact, err = buildContact(details.PublicKey)
if err != nil { if err != nil {

View File

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