mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
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
|
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 {
|
||||||
|
2
vendor/github.com/status-im/status-go/protocol/messenger.go
generated
vendored
2
vendor/github.com/status-im/status-go/protocol/messenger.go
generated
vendored
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user