Skip to content

Commit

Permalink
feat: enabled smart contract addresses in contract store (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoarinSkySagar authored Oct 14, 2024
1 parent 8c188cb commit f115d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/stores/contactsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function createContactsStore() {
*/
add: (contact) =>
update((list) => {
if (StrKey.isValidEd25519PublicKey(contact.address)) {
if (StrKey.isValidEd25519PublicKey(contact.address) || StrKey.isValidContract(contact.address)) {
return [...list, { ...contact, id: uuidv4() }]
} else {
throw error(400, { message: 'invalid public key' })
Expand Down

0 comments on commit f115d48

Please sign in to comment.