From 1cce75e3577808762e1cf4c97e4d83b3c452b689 Mon Sep 17 00:00:00 2001 From: Matt Solomon Date: Wed, 31 Mar 2021 20:13:35 -0700 Subject: [PATCH] Clarify error message in lookupRecipient --- umbra-js/src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbra-js/src/utils/utils.ts b/umbra-js/src/utils/utils.ts index f8b46e025..b8edb4f73 100644 --- a/umbra-js/src/utils/utils.ts +++ b/umbra-js/src/utils/utils.ts @@ -138,7 +138,7 @@ export async function lookupRecipient(id: string, provider: EthersProvider) { // Get last transaction hash sent by that address const txHash = await getSentTransaction(id, provider); if (!txHash) { - throw new Error('The provider address has not sent any transactions'); + throw new Error('Could not get public key because the provided address has not sent any transactions'); } // Get public key from that transaction