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
3 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.39.10
|
||||
0.39.11
|
||||
|
|
|
@ -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 {
|
||||
|
|
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
|
||||
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 a new issue