Skip to content

Commit

Permalink
Clarify error message in lookupRecipient
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 committed Apr 1, 2021
1 parent c892d0f commit 1cce75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umbra-js/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cce75e

Please sign in to comment.