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:
parent
21c67f7296
commit
a4f88d0017
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue