add ability to find contact by name

This commit is contained in:
liamcottle 2025-04-08 14:08:48 +12:00
parent db5e5bd76f
commit cd5bebc973
2 changed files with 14 additions and 1 deletions

View file

@ -10,7 +10,8 @@ connection.on("connected", async () => {
console.log("Connected");
// find contact
const contact = await connection.findContactByPublicKeyPrefix([0x93, 0x5c, 0x6b, 0x69]);
// const contact = await connection.findContactByPublicKeyPrefix([0x93, 0x5c, 0x6b, 0x69]);
const contact = await connection.findContactByName("Liam's Solar Repeater");
if(!contact){
console.log("Contact not found");
return;